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

use gomods #12429

Merged
merged 1 commit into from
Mar 18, 2024
Merged

use gomods #12429

merged 1 commit into from
Mar 18, 2024

Conversation

jmank88
Copy link
Contributor

@jmank88 jmank88 commented Mar 14, 2024

Use gomods so we don't have to keep updating our commands with a hard coded list of modules.

https://github.com/jmank88/gomods

Copy link
Contributor

I see that you haven't updated any README files. Would it make sense to do so?

Comment on lines -31 to -34
go mod tidy
cd ./core/scripts && go mod tidy
cd ./integration-tests && go mod tidy
cd ./integration-tests/load && go mod tidy
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Notice this was missing two modules:

go install github.com/jmank88/[email protected]
gomods -w go generate -x ./...
found 6 go.mod files:
        ./go.mod
        charts/chainlink-cluster/go.mod
        core/scripts/go.mod
        dashboard/go.mod
        integration-tests/go.mod
        integration-tests/load/go.mod

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(and one was not tidy)

generate: abigen codecgen mockery protoc ## Execute all go:generate commands.
go generate -x ./...
generate: abigen codecgen mockery protoc gomods ## Execute all go:generate commands.
gomods -w go generate -x ./...
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We were only generating the core module.

@jmank88 jmank88 requested review from a team March 14, 2024 13:30
chainchad
chainchad previously approved these changes Mar 14, 2024
@cl-sonarqube-production
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@jmank88 jmank88 requested a review from chainchad March 14, 2024 13:56
@jmank88 jmank88 marked this pull request as ready for review March 14, 2024 13:57
@jmank88 jmank88 requested a review from a team as a code owner March 14, 2024 13:57
Copy link
Contributor

@patrickhuie19 patrickhuie19 left a comment

Choose a reason for hiding this comment

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

🔥

@jmank88 jmank88 added this pull request to the merge queue Mar 18, 2024
Merged via the queue into develop with commit 227e91a Mar 18, 2024
98 checks passed
@jmank88 jmank88 deleted the gomods branch March 18, 2024 13:47
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.

4 participants