8000 feat: make go dependency validation during build optional by jeronimoalbi · Pull Request #2685 · ignite/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: make go dependency validation during build optional #2685

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

Merged
merged 3 commits into from
Aug 3, 2022

Conversation

jeronimoalbi
Copy link
Member

Resolves #137

These changes makes go mod verify during build optional. The default behaviour is not to verify during build.

App dependencies verification is a good practice but is not really required for the build.

By default, these changes bypass the verification to avoid the missing ziphash files for local modules that can happen when a workspace is used. The real issue seems to be a Go tooling issue that happens when go mod verify is run within a Go workspace context.

This option allow to make the call to `go mod verify` optional and
disabled by default to avoid issues with module ziphash files when a Go
workspace is being used.
@ilgooz
Copy link
Member
ilgooz commented Aug 1, 2022

Hey @robert-zaremba, this PR may fix the issue that you were experiencing in #137.

@robert-zaremba
Copy link

Thanks!

Copy link
Contributor 8000
@aljo242 aljo242 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ilgooz ilgooz merged commit 1401372 into develop Aug 3, 2022
@ilgooz ilgooz deleted the fix/missing-ziphash-build-error branch August 3, 2022 21:04
fadeev added a commit that referenced this pull request Aug 4, 2022
Add #2685 to the changelog.
@fadeev fadeev mentioned this pull request Aug 4, 2022
Jchicode pushed a commit to Jchicode/cli that referenced this pull request Aug 9, 2023
* feat: add chain option to enable dependencies verification

This option allow to make the call to `go mod verify` optional and
disabled by default to avoid issues with module ziphash files when a Go
workspace is being used.

* feat: add check dependencies flag to chain init, build and serve

* feat: add check dependencies flag to network chain commands
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

Successfully merging this pull request may close these issues.

'missing ziphash' upon creating an app
4 participants
0