Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Actually support Go #93

Merged
merged 8 commits into from
Jun 10, 2019
Merged

Actually support Go #93

merged 8 commits into from
Jun 10, 2019

Conversation

grahamc
Copy link
Contributor

@grahamc grahamc commented Jun 7, 2019

#75 implemented support for shellHooks, but ... oops: Go doesn't use shellHooks to setup GOPATH.

This code monkeypatches much sooner: https://github.com/NixOS/nixpkgs/blob/22a765d0da7070311e5b8c2bb29fa496c833dae5/pkgs/stdenv/generic/setup.sh#L238-L284

and correctly supports GOPATH.

It also fixes a bit of an annoying bug where an appended variable would be appended, including a delimiter, even if the variable was empty before: 664727a

cc @mmlb who found and helped debug this problem. (and tested it fixed it!)

@grahamc grahamc requested a review from Profpatsch June 7, 2019 20:09
@mmlb
Copy link

mmlb commented Jun 7, 2019

tested locally and confirmed to work equivalent to plain nix-shell

Copy link
Collaborator

@Profpatsch Profpatsch left a comment

Choose a reason for hiding this comment

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

Fantastic

@Profpatsch Profpatsch merged commit ba299dd into master Jun 10, 2019
@grahamc grahamc deleted the bug23/actual-go-support branch July 1, 2019 22:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants