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

buildGoModule: update deleteVendor docs #95246

Merged
merged 2 commits into from Aug 13, 2020
Merged

buildGoModule: update deleteVendor docs #95246

merged 2 commits into from Aug 13, 2020

Conversation

zowoq
Copy link
Contributor

@zowoq zowoq commented Aug 12, 2020

I've seen some confusion about when deleteVendor should be used, we don't explain that is is for when the vendor folder is broken or incomplete and that vendorSha256 = null is preferred.

Simplifying the message and listing the less common options in the docs should be fine.

@@ -85,7 +85,12 @@ let
runHook preBuild

if [ ${deleteFlag} == "true" ]; then
rm -rf vendor
if [ ! -e vendor ]; then
echo "vendor folder does not exist, 'deleteVendor' is not needed"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

2/4 packages using deleteVendor don't have a vendor folder to delete. #95247

@zowoq zowoq merged commit cdd4547 into NixOS:master Aug 13, 2020
@zowoq zowoq deleted the docs-deletevendor branch August 13, 2020 21:50
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