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

Rebase pr 53 / simplify nix wrapping #148

Merged
merged 11 commits into from
May 4, 2021
Merged

Rebase pr 53 / simplify nix wrapping #148

merged 11 commits into from
May 4, 2021

Conversation

srhb
Copy link
Contributor

@srhb srhb commented Apr 29, 2021

Everything but the last commit is rebasing/fixups of #53 .

The rest is simplification of the nix-shell and build, which is opinionated and drops features from the shell. We can re-add things as needed, but for now I didn't manage to get most of it working correctly with go modules, and prefer to rely on "normal Nix idioms".

Feel free to have strong opinions. :)

@srhb srhb changed the title draft: Rebase pr 53 draft: Rebase pr 53 / buildwith go modules Apr 29, 2021
@srhb srhb changed the title draft: Rebase pr 53 / buildwith go modules draft: Rebase pr 53 / build with go modules Apr 29, 2021
kalbasit and others added 10 commits May 3, 2021 10:01
Remove a bunch of stuff from the "dev" shell and rely on normal nix
builds/shell instead. This does drop some features like automatically
updating the vendorSha256, but hopefully the simpler setup means running
`go get -u`, `nix-build` and manually ensuring hash consistency feels
intuitive
@srhb srhb changed the title draft: Rebase pr 53 / build with go modules Rebase pr 53 / simplify nix wrapping May 3, 2021
@srhb srhb requested a review from johanot May 3, 2021 14:32
Copy link
Contributor

@johanot johanot left a comment

Choose a reason for hiding this comment

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

LGTM. We talked out-of-band about the potential for future improvements here, but it's definitely nice to get rid of custom shell magic and build directly with Nix. Thanks for this! Merge at will, when you're ready?

@srhb srhb merged commit 61f069a into master May 4, 2021
@srhb srhb deleted the rebase-pr-53 branch May 4, 2021 11:55
main.version=${version}
'';

vendorSha256 = "08zzp0h4c4i5hk4whz06a3da7qjms6lr36596vxz0d8q0n7rspr9";
Copy link
Contributor

Choose a reason for hiding this comment

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

If you store the dependencies in your Git repository then this can become set to null. See https://nixos.org/manual/nixpkgs/stable/#ssec-go-modules

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.

3 participants