-
Notifications
You must be signed in to change notification settings - Fork 84
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
Added nixpkgs_go_configure #107
Added nixpkgs_go_configure #107
Conversation
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.
Thanks for the contribution. This should be useful for rules_haskell, where we simply set go_register_toolchains(go_version = "host")
inside a Nix shell. Generally looks good.
Really cool 👍 As @mboes said, we currently have a workaround (using This breaks the tests however − which unfortunately isn't caught by the CI because it is broken 😕 − because they still use the very old bazel 1.1 which isn't compatible with the version of |
I took a look at that failure. Fortunately it was easy to work around the issue: #108 |
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.
Just a couple of comments that I forgot to submit earlier today
b0cc53a
to
21ad8ae
Compare
Pulled latest master, fixed docs (see comment below) and improved nix expression. Fix in docs: |
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.
It's quite unfortunate that we can't just call the rule and let the toolchain resolution do its job, but I agree that having this rule is still better than using it from the environment.
(wrt the hack you mention, it can be simplified a bit: see tweag/rules_haskell@bb9ef6b. Maybe some of this could even be upstreamed in rules_nixpkgs)
Thanks! |
It's a mystery how it wasn't added yet since rules_docker require working go sdk and it doesn't work on NixOS because it's being downloaded as a binary