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

gotools: update comments regarding gopls #89372

Merged
merged 3 commits into from Sep 11, 2020

Conversation

roman
Copy link
Contributor

@roman roman commented Jun 2, 2020

Motivation for this change

Update documentation of the gotools derivation to inform users that were relying this derivation to get the gopls binary where to get it now.

Closes #88716

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

NOTE: Given the changes are only documentation, I did not bother the derivation result is misbehaving.

The replaced comment was stating some properties about upstream source
code that are no longer the case. The new comment mentions what's the
current situation in regards to the gopls binary.
# can't load package: package golang.org/x/tools/gopls: unknown import path "golang.org/x/tools/gopls": cannot find module providing package golang.org/x/tools/gopls
# That is most probably caused by golang.org/x/tools/gopls containing a separate Go module.
# In order to fix this, we simply remove the module.
# Note that build of golang.org/x/tools/cmd/gopls provides identical binary as golang.org/x/tools/gopls.
Copy link
Member

Choose a reason for hiding this comment

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

I guess just removing this line and adding additional references could be enough

pkgs/development/tools/gotools/default.nix Outdated Show resolved Hide resolved
pkgs/development/tools/gotools/default.nix Outdated Show resolved Hide resolved
doronbehar and others added 2 commits September 11, 2020 12:07
Co-authored-by: Roman Volosatovs <rvolosatovs@users.noreply.github.com>
@doronbehar doronbehar merged commit 6d4b933 into NixOS:master Sep 11, 2020
@doronbehar
Copy link
Contributor

Damn! Github is drunk:

Screenshot from 2020-09-11 12-12-45

And the PR is still open...

@doronbehar
Copy link
Contributor

Oh it's all good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gotools package no longer installing gopls
4 participants