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

buildGoPackage: check/delete vendor #96735

Merged
merged 27 commits into from Sep 8, 2020
Merged

buildGoPackage: check/delete vendor #96735

merged 27 commits into from Sep 8, 2020

Conversation

zowoq
Copy link
Contributor

@zowoq zowoq commented Aug 31, 2020

I've seen several existing and newly submitted packages using an unnecessary goDeps with buildGoPackage, hopefully this would point people in the right direction.

Copied deleteVendor from buildGoModule to cover cases when we don't want to use the vendor folder.

Would need to rebuild/fix packages and update docs before merging. Done.

cc @NixOS/golang

@zowoq zowoq marked this pull request as ready for review August 31, 2020 11:31
@zowoq zowoq marked this pull request as draft August 31, 2020 11:53
@zowoq zowoq marked this pull request as ready for review August 31, 2020 13:40
};

nativeBuildInputs = [ pkgconfig ];
# livepeer_cli has a vendoring problem
Copy link
Contributor Author

@zowoq zowoq Sep 1, 2020

Choose a reason for hiding this comment

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

Out of ~390 buildGoPackages this seems to be the only one that breaks and it's non-trivial to fix.

(The previous version also has issues.)

I'll come back to it after this PR is merged.

Copy link
Member

@mdlayher mdlayher left a comment

Choose a reason for hiding this comment

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

LGTM, nice work.

@zowoq
Copy link
Contributor Author

zowoq commented Sep 2, 2020

I'll merge after the branch off.

@zowoq
Copy link
Contributor Author

zowoq commented Sep 8, 2020

Rechecked nixpkgs-review on nixos x86_64.

@zowoq zowoq merged commit 9b3bc6b into NixOS:master Sep 8, 2020
@zowoq zowoq deleted the buildgopackage-vendor branch September 8, 2020 06:32
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.

None yet

3 participants