Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
vendoring can be disabled in 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Oct 25, 2016
1 parent 1af7408 commit 1151ca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ export function isVendorSupported(): Promise<boolean> {
}
return getGoVersion().then(version => {
if (!version) {
return true;
return process.env['GO15VENDOREXPERIMENT'] === '0' ? false : true;
}

switch (version.major) {
case 0:
vendorSupport = false;
break;
case 1:
vendorSupport = (version.minor > 5 || (version.minor === 5 && process.env['GO15VENDOREXPERIMENT'] === '1')) ? true : false;
vendorSupport = (version.minor > 6 || ((version.minor === 5 || version.minor === 6) && process.env['GO15VENDOREXPERIMENT'] === '1')) ? true : false;
break;
default:
vendorSupport = true;
Expand Down

0 comments on commit 1151ca6

Please sign in to comment.