0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

go get時にpackage embed: unrecognized import path "embed" (import path does not begin with hostname)が表示される

Posted at

go getでpackage embed〜が出る

$ go get -u github.com/****/****
package embed: unrecognized import path "embed": import path does not begin with hostname

ちなみに、遊ぶ目的でojichatをインストールしようとしていた感じでした :joy:
参考) https://github.com/greymd/ojichat

embed packageとはなんぞや

リリースノート見てみると、go 1.16から追加された様子
https://go.dev/blog/go1.16

バージョンを確認してみる

$ go version
go version go1.15.14 linux/amd64

ありゃ。
ということで、goのバージョンをあげます。
https://golang.org/dl/go1.16.linux-amd64.tar.gz

こちらからwgetでダウンロードしてきてインストールし、パスを通します。

$ go version
go version go1.16 linux/amd64

go 1.16にあげたらgo getで問題なくダウンロードが開始されました。めでたし。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?