<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>quoll00</author_name>
  <author_url>https://blog.hatena.ne.jp/quoll00/</author_url>
  <blog_title>Carpe Diem</blog_title>
  <blog_url>https://christina04.hatenablog.com/</blog_url>
  <categories>
    <anon>Go</anon>
  </categories>
  <description>背景 依存するモジュールのメジャーバージョンがv2以上の場合に、以下のようにバージョン指定すると $ go get github.com/xxx/yyy@v2.0.1 次のように怒られます。 require github.com/xxx/yyy: version &quot;v2.0.1&quot; invalid: should be v0 or v1, not v2 今回はこの対応方法について説明します。 環境 go 1.16.3 version &quot;vX.X.X&quot; invalid: should be v0 or v1, not v2 原因 go modulesは複数の依存モジュールA, Bが同じ依存モジュー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchristina04.hatenablog.com%2Fentry%2Fgo-modules-major-version&quot; title=&quot;Go modulesで依存モジュールのメジャーバージョンがv2以上の時の対応 - Carpe Diem&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/q/quoll00/20210501/20210501231518.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-05-01 15:49:26</published>
  <title>Go modulesで依存モジュールのメジャーバージョンがv2以上の時の対応</title>
  <type>rich</type>
  <url>https://christina04.hatenablog.com/entry/go-modules-major-version</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
