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

mkGoEnv: different locations for tools.go and go.mod/sum? #95

Open
martinbaillie opened this issue Sep 8, 2022 · 0 comments
Open

mkGoEnv: different locations for tools.go and go.mod/sum? #95

martinbaillie opened this issue Sep 8, 2022 · 0 comments

Comments

@martinbaillie
Copy link
Contributor

Thanks for the excellent work you've done here! I'm especially interested in the mkGoEnv / tools.go pattern for providing Go tooling via Nix that's clamped to the go.sum.

I've been looking through the code tonight to see if it would be suitable for a monorepo I work in that shares a single go.mod but has many subfolders each with their own shell.nix/tools.go that want to utilise a subset of the go.mod to put some Go-based tools on the developer's path.

I was wondering:

  • Is there a way to provide a different location from pwd for the tools.go during mkGoEnv that I missed?
  • Will mkGoEnv always build everything in the go.mod even if the tools.go only references a tiny subset of import _ <gitforge>/<user>/<blahprj>/cmd/<blah>
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

1 participant