Fix a panic that could occur when context was omitted (#83)
I could have sworn the context property was required, but evidently it isn't and we weren't handling the case when it was missing. This PR updates things to set a default location of the current directory if the context is absent. Some unit tests are also added. Fixes #78.
This commit is contained in:
4
sdk/nodejs/image.ts
generated
4
sdk/nodejs/image.ts
generated
@@ -545,7 +545,7 @@ export class Image extends pulumi.CustomResource {
|
||||
*/
|
||||
public readonly cacheTo!: pulumi.Output<outputs.CacheTo[] | undefined>;
|
||||
/**
|
||||
* Build context settings.
|
||||
* Build context settings. Defaults to the current directory.
|
||||
*
|
||||
* Equivalent to Docker's `PATH | URL | -` positional argument.
|
||||
*/
|
||||
@@ -842,7 +842,7 @@ export interface ImageArgs {
|
||||
*/
|
||||
cacheTo?: pulumi.Input<pulumi.Input<inputs.CacheToArgs>[]>;
|
||||
/**
|
||||
* Build context settings.
|
||||
* Build context settings. Defaults to the current directory.
|
||||
*
|
||||
* Equivalent to Docker's `PATH | URL | -` positional argument.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user