Skip to content

Commit

Permalink
Do not download go assets if the module uses vendoring
Browse files Browse the repository at this point in the history
We detect this by checking for a "vendor" directory.
  • Loading branch information
mlschroe committed Jan 14, 2022
1 parent 525753e commit 7fbff3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PBuild/RemoteAssets.pm
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ sub recipe_parse {
#
sub golang_parse {
my ($p) = @_;
return unless $p->{'files'}->{'go.sum'};
return unless $p->{'files'}->{'go.sum'} && !$p->{'files'}->{'vendor/'};
my $fd;
my @assets;
open ($fd, '<', "$p->{'dir'}/go.sum") || die("$p->{'dir'}/go.sum: $!\n");
Expand Down

0 comments on commit 7fbff3d

Please sign in to comment.