Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

indirect dependencies might be missed #13

Open
greg-szabo opened this issue Apr 14, 2023 · 1 comment
Open

indirect dependencies might be missed #13

greg-szabo opened this issue Apr 14, 2023 · 1 comment

Comments

@greg-szabo
Copy link
Member

Indirect dependencies are not always present in the go.mod file and they might surface only with go mod tidy.

This will become a problem once we filter for more than the basic comet/SDK dependencies.

User story: I have some extra code looking for wasmvm dependencies. In the case of https://raw.githubusercontent.com/commercionetwork/commercionetwork/v4.0.0/go.mod , only wasmd is mentioned. If you run go mod tidy (or build the app), you'll see that wasmvm is an indirect dependency that has to be compiled in.

@webmaster128
Copy link
Member

In this case go list gives you the correct result:

$ go list -m github.com/CosmWasm/wasmvm
github.com/CosmWasm/wasmvm v1.0.0

As far as I can tell this is the only way to relyably get the version of a dependency that is actually used as Go calculated the dependency version dynamically and does not write the version in use to a lockfile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants