Cosmos-sdk: Add Gopkg.lock in gitignore?

Created on 17 Jul 2018  路  1Comment  路  Source: cosmos/cosmos-sdk

It does not affect the code but generated each time running make ci.

CI

Most helpful comment

Run make update_tools, dep updated which may be whats causing it to change.

I think we want Gopkg.lock in the source tree, since that ensures we're all running the same version of dependencies.

The differences are being caused by the inclusion of pruneopts and digest in the lock file, which dep says is now required. https://golang.github.io/dep/docs/Gopkg.lock.html

EDIT: Also thought of another reason to keep this. For people installing the SDK for testnets, they don't have to go through the much longer initial build process where dep tries to figure out whats the right version.

>All comments

Run make update_tools, dep updated which may be whats causing it to change.

I think we want Gopkg.lock in the source tree, since that ensures we're all running the same version of dependencies.

The differences are being caused by the inclusion of pruneopts and digest in the lock file, which dep says is now required. https://golang.github.io/dep/docs/Gopkg.lock.html

EDIT: Also thought of another reason to keep this. For people installing the SDK for testnets, they don't have to go through the much longer initial build process where dep tries to figure out whats the right version.

Was this page helpful?
0 / 5 - 0 ratings