pulumi/sdk/go/common/resource
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
..
config Change BulkDecrypt to not rely on type tests (#9373) 2022-04-11 08:59:46 +01:00
plugin Respond to SIGINT during plugin install (#9793) 2022-06-09 14:57:56 -07:00
testing Do not FailNow() in generators (#8469) 2021-11-19 20:39:11 -05:00
asset.go Allow a path to a file when cons'ing an archive 2022-06-10 17:50:40 +01:00
asset_test.go Allow a path to a file when cons'ing an archive 2022-06-10 17:50:40 +01:00
custom_timeouts.go move pkg/resource -> sdk/go/common/resource, but leave nested resource packages 2020-03-18 13:36:19 -07:00
errors.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
properties.go [diff] Handle YAML maps with numeric keys. (#9503) 2022-05-02 12:11:46 -07:00
properties_diff.go Preview of update plans (#8448) 2022-01-31 10:31:51 +00:00
properties_diff_test.go Specify fields on engine diff (#8488) 2021-11-30 12:25:27 -08:00
properties_path.go Preview of update plans (#8448) 2022-01-31 10:31:51 +00:00
properties_path_test.go Fix concurrent access to PropertyValue in TestPropertyPath (#9553) 2022-05-05 14:38:17 +01:00
properties_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
resource_goal.go Add RetainOnDelete resource option (#8746) 2022-02-16 22:11:12 +00:00
resource_id.go Litle tidy up to NewUniqueHexV2 (#9372) 2022-04-13 06:44:51 +01:00
resource_id_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
resource_operation.go move pkg/resource -> sdk/go/common/resource, but leave nested resource packages 2020-03-18 13:36:19 -07:00
resource_state.go Revert "Strip Aliases from state (#9275)" (#9282) 2022-03-24 20:08:18 +01:00
stack.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
status.go move pkg/resource -> sdk/go/common/resource, but leave nested resource packages 2020-03-18 13:36:19 -07:00
urn.go Implement state rename command. Resolves #2060 2022-03-03 10:53:28 +01:00
urn_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00