fix(gomod): CGO_ENABLED=0

This commit is contained in:
Rhys Arkins 2018-10-17 12:12:51 +02:00
parent 5533d371c5
commit 95b44d773d

View file

@ -58,6 +58,7 @@ async function getArtifacts(
cmd += volumes.map(v => `-v ${v}:${v} `).join(''); cmd += volumes.map(v => `-v ${v}:${v} `).join('');
const envVars = ['GOPATH']; const envVars = ['GOPATH'];
cmd += envVars.map(e => `-e ${e} `); cmd += envVars.map(e => `-e ${e} `);
cmd += '-e CGO_ENABLED=0 ';
cmd += `-w ${cwd} `; cmd += `-w ${cwd} `;
cmd += `renovate/go go`; cmd += `renovate/go go`;
} else { } else {