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

chore: add stringer to dependency tools #643

Merged
merged 4 commits into from
Mar 27, 2023

Conversation

tbruyelle
Copy link
Contributor

Following this documented pattern, make stringer can now be
invoked by a developer without the need to have the stringer binary in
his/her path.

In addition this ensures everyone use the same version of the tool (the
version is tracked in go.mod).

Following this [documented pattern][0], `make stringer` can now be
invoked by a developer without the need to have the `stringer` binary in
his/her path.

In addition this ensures everyone use the same version of the tool (the
version is tracked in go.mod).

[0]: https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module
@tbruyelle tbruyelle requested a review from a team as a code owner March 24, 2023 13:14
@moul
Copy link
Member

moul commented Mar 24, 2023

Thank you Thomas,

What do you think about maintaining the current approach, but using a separate go.mod file to keep the main one as concise as possible while still retaining the same benefits?

-> https://github.com/gnolang/gno/tree/master/misc/devdeps
-> https://github.com/gnolang/gno/blob/master/Makefile#L86

If you also prefer this method, let's update our CONTRIBUTING.md file too.

Else, let's consider removing devdeps and using your method for all the developer dependencies.

@tbruyelle
Copy link
Contributor Author

Oh I missed there was already a dependency management pattern in the repo. Indeed the benefit of the existing one is it doesn't add dependencies to the main go.mod. I think it's better, so I moved stringer in devdeps.

393ba7e

@thehowl thehowl merged commit 603a873 into gnolang:master Mar 27, 2023
r3v4s pushed a commit to r3v4s/gno that referenced this pull request Mar 28, 2023
* chore: add stringer to dependency tools

Following this [documented pattern][0], `make stringer` can now be
invoked by a developer without the need to have the `stringer` binary in
his/her path.

In addition this ensures everyone use the same version of the tool (the
version is tracked in go.mod).

[0]: https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module

* fix: use existing dep management for stringer

* go mod tidy again
peter7891 pushed a commit that referenced this pull request Mar 29, 2023
* chore: add stringer to dependency tools

Following this [documented pattern][0], `make stringer` can now be
invoked by a developer without the need to have the `stringer` binary in
his/her path.

In addition this ensures everyone use the same version of the tool (the
version is tracked in go.mod).

[0]: https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module

* fix: use existing dep management for stringer

* go mod tidy again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants