The issue is related to this code: https://github.com/pulumi/pulumi/blob/v0.16.4/pkg/workspace/plugins.go#L155-L195 Note that we use `defer` to ensure we close our handle to the file we are unpacking when we encounter a file in the tarball. However, the defers don't run until the containing function ends, so when we go to do the rename, or process still has a bunch of open file handles, which prevents the directory from being renamed because it is "in use". By doing all of the work in an anonymous function, we ensure that the defer statements run before we go to rename the directory Fixes #2217
2.7 KiB
0.16.6 (Unreleased)
0.16.5 (Released Novemeber 16th, 2018)
- Fix an issue where
pulumi plugin install
would fail on Windows with an access deined message.
0.16.4 (Released Novemeber 12th, 2018)
Major Changes
- If you're using Pulumi with Python, this release removes Python 2.7 support in favor of Python 3.6 and greater. In addition, some members have been renamed. For example the
stack_output
function has been renamed toexport
. All major features of Pulumi work with this release, including parallelism!
Improvements
-
Download plugins to a temporary folder during
pulumi plugin install
to ensure if the operation is canceled, the have downloaded plugin is not used. -
If an update is in progress when
pulumi stack ls
is run, don't show its last update time as "a long time ago". -
Add
--preserve-config
topulumi stack rm
which causes Pulumi to keep thePulumi.<stack-name>.yaml
when removing a stack. -
Support passing template names to
pulumi up
the same aspulumi new
does. -
When
-g
or--generate-only
is passed topulumi new
, don't show a confusing message that says it will update a stack. -
Fix an issue where an output property of a resource would change its type during an update in some cases.
-
Provide richer detail on the properties during a multi-stage replace.
-
Fix
pulumi logs
so it can collect log messages from Lambdas on AWS. -
Pulumi now reports metadata during CI runs on CircleCI, for later display on app.pulumi.com.
-
Fix an assert that could fire if a checkpoint had multiple resources with the same URN (which could happen in cases where a delete operation was pending on an old copy of a resource).
-
When
$TERM
is set todumb
, Pulumi should no longer try to use interactive reading from the terminal, which would fail. -
When displaying elapsed time for an update, round to the nearest second.
-
Add the
--json
flag to thepulumi logs
command. -
Add an
iterable
module to@pulumi/pulumi
with two helpful combinatorstoObject
andgroupBy
to help combine multipleOutput<T>
's into a single object. -
Pulumi no longer prompts you for confirmation when
--skip-preview
is passed topulumi update
. Instead, it just preforms the update as requested. -
Add the
--json
flag to thepulumi stack ls
command. -
The
--color=always
flag should now be respected in all cases. -
Pulumi now reports metadata about GitLab repositories when doing an update, so they can be shown on app.pulumi.com.
-
Pulumi now uses compression when uploading your checkpoint file to the Pulumi service, which should speed up updates where your stack has many resources.
-
"First Class" providers used to be shown as changing during previews. This is no longer the case.