pulumi/sdk
Michael Bridgen aec158fd2d Allow a path to a file when cons'ing an archive
It's legitimate to construct an archive with a single file (rather than
a directory) by mentioning the file's name:

    zip handler.zip handler/main

In fact, that's what the AWS Lambda docs suggest:
https://docs.aws.amazon.com/lambda/latest/dg/golang-package.html

This commit lets you do the equivalent when making an
`asset.FileArchive`. It needs a little rearrangement of
directoryArchiveReader so that the individual paths are relative to a
base rather than sharing a prefix; otherwise, a single-file archive (in
which the name is the entire file path) cannot be constructed. I've
sign-posted this change by renaming the helper struct in question to
`filesystemArchiveReader`.

Signed-off-by: Michael Bridgen <mbridgen@pulumi.com>
2022-06-10 17:50:40 +01:00
..
dotnet Poll gRPC healthchecks to auto-cancel sub-processes (#9735) 2022-06-06 13:28:00 +01:00
go Allow a path to a file when cons'ing an archive 2022-06-10 17:50:40 +01:00
nodejs Respond to SIGINT during plugin install (#9793) 2022-06-09 14:57:56 -07:00
proto Update python protobuf generation (#9737) 2022-06-01 13:47:41 +01:00
python Respond to SIGINT during plugin install (#9793) 2022-06-09 14:57:56 -07:00
README.md Updating .NET references 2020-04-27 12:42:11 -07:00
go.mod Update protoc (#9713) 2022-05-31 15:41:40 +01:00
go.sum Bump to github.com/gogo/protobuf@v1.3.2 (#9258) 2022-04-18 13:17:56 +03:00

README.md

Pulumi Language SDKs

This directory contains the Pulumi SDKs for all supported languages.

Please see the respective READMEs for information about installing and using these libraries:

The language providers work by implementing gRPC interfaces defined in proto/.