-
Notifications
You must be signed in to change notification settings - Fork 580
Use go tool to trace tool dependencies #255
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
Conversation
Makefile
Outdated
@@ -6,6 +6,15 @@ BASE_STACK = docker compose -f docker-compose.yml | |||
INTEGRATION_TEST_STACK = $(BASE_STACK) -f docker-compose-integration-test.yml | |||
ALL_STACK = $(INTEGRATION_TEST_STACK) | |||
|
|||
# go tool | |||
GCI = go tool github.com/daixiang0/gci |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, why so complex? Now I can't use it like simple cmd from terminal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, you can use the go install tool
command to install these tools into GOBIN
.
Hmm, it does seem a bit too complicated—I think that's because this feature was newly released.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, we should use this installation command, I guess. It may help us to get a better experience with pure command line usages and Makefile usages. What do you think about this?
ef8e3e1
to
4d3c7bc
Compare
@yshngg, this branch has conflicts. Could you rebase/fix your branch? |
… and using direct calls This commit removes the unnecessary Go tool variables and directly uses the tool commands, streamlining the Makefile and reducing maintenance overhead.
Hi @soltanoff , I have already successfully resolved the conflict. |
@yshngg looks good, thank you |
Track tool dependencies using commands such as
go get -tool golang.org/x/tools/cmd/stringer
andgo tool golang.org/x/tools/cmd/stringer
.Currently, the
migrate
tool does not integrate properly with the newgo tool
feature released in Go 1.24.Fix #237