LoginSignup
10
11

More than 5 years have passed since last update.

Godepでpackageをupdateするとき

Posted at

いつも忘れるので書いておきます。
aws-sdk-goのパッケージをアップデートする場合。

パッケージアップデート

go get -u github.com/aws/aws-sdk-go

依存関係のアップデート

godep update github.com/aws/aws-sdk-go

保存

godep save

以上。

ついでに

aws-sdk-goをアップデートした時に出たエラー

go get -u github.com/aws/aws-sdk-go
godep update github.com/aws/aws-sdk-go

aws-sdk-goをアップデートしたあと
Godeps.jsonもアップデートしようとしたら以下のようなエラーが出た。(MacOSX)

godep: not in manifest: github.com/aws/aws-sdk-go
godep: cannot find package "github.com/aws/aws-sdk-go/internal/apierr" in any of:
    /usr/local/Cellar/go/1.4.2/libexec/src/github.com/aws/aws-sdk-go/internal/apierr (from $GOROOT)
    /Users/xxxxxx/go/src/github.com/aws/aws-sdk-go/internal/apierr (from $GOPATH)

なので、

mv Godeps{,.bak}
godep save

した。

10
11
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
10
11