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

FileArchive creates zip files with backslashes on Windows #2784

Closed
mikhailshilkov opened this issue May 30, 2019 · 1 comment · Fixed by #2887
Closed

FileArchive creates zip files with backslashes on Windows #2784

mikhailshilkov opened this issue May 30, 2019 · 1 comment · Fixed by #2887
Assignees
Milestone

Comments

@mikhailshilkov
Copy link
Member

Scenario: I'm running on Windows 10 and want to deploy an Azure Function App running on Linux. I package the files as a ZipBlob:

const zipBlob = new azure.storage.ZipBlob(name, {
    resourceGroupName: args.resourceGroupName,
    storageAccountName: account.name,
    storageContainerName: container.name,
    type: "block",
    content: new pulumi.asset.FileArchive("./app"));

and then link to it from Function App settings.

The problem is that the Function App won't discover any functions, because the produced zip archive contains backslashes instead of forwardslashes:

image

This seems to be against the zip spec.

Is there a parameter somewhere that we could use to flip the slashes?

@mikhailshilkov
Copy link
Member Author

ssh-ed to the unzipped folder:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants