mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
windows golang chmod for deploy func -f too
This commit is contained in:
parent
eb4944108e
commit
7c73fdff37
@ -123,9 +123,16 @@ module.exports = {
|
||||
}
|
||||
|
||||
const zipFileName = `${functionName}.zip`;
|
||||
const filesToChmodPlusX = []
|
||||
if (process.platfrom === 'win32') {
|
||||
const runtime = functionName.runtime || this.serverless.service.provider.runtime;
|
||||
if (runtime).startsWith('go') {
|
||||
filesToChmodPlusX.push(functionObject.handler)
|
||||
}
|
||||
}
|
||||
|
||||
return this.resolveFilePathsFunction(functionName).then(filePaths =>
|
||||
this.zipFiles(filePaths, zipFileName).then(artifactPath => {
|
||||
this.zipFiles(filePaths, zipFileName, undefined, filesToChmodPlusX).then(artifactPath => {
|
||||
functionObject.package = {
|
||||
artifact: artifactPath,
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user