-
Notifications
You must be signed in to change notification settings - Fork 4k
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
docs: note that App
s outdir
property should not be used
#16670
Conversation
If this property is passed it has to agree with the CLI's `--output` flag. If this property is not passed, it will default to the CLI's `--output` flag. In either case, it's better to just use `--output` and not pass this property at all; the property only has value inside tests. Fixes #3717.
924c117
to
ebfd5f2
Compare
deployment role | ||
Default: '' | ||
Type: CommaDelimitedList | ||
PermissionsBoundaryArns: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this change related?
packages/@aws-cdk/core/lib/app.ts
Outdated
@@ -104,6 +111,10 @@ export class App extends Stage { | |||
outdir: props.outdir ?? process.env[cxapi.OUTDIR_ENV], | |||
}); | |||
|
|||
if (process.env[cxapi.OUTDIR_ENV] && props.outdir) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to add a unit test for this if possible
App
s outdir
property should not be usedApp
s outdir
property should not be used
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
If this property is passed it has to agree with the CLI's `--output` flag. If this property is not passed, it will default to the CLI's `--output` flag. In either case, it's better to just use `--output` and not pass this property at all; the property only has value inside tests. I tried to add validation (by using `Annotations.of(app).addWarning()` but they are useless anyway: in the CX protocol, metadata can only be attached to `StackArtifacts`, so metadata attached to the `App` will not be rendered. Adding a full framework feature to move metadata to a different place feels like too much risk and work for this small note, so turned it into a documentation fix. Fixes aws#3717. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
If this property is passed it has to agree with the CLI's
--output
flag.If this property is not passed, it will default to the CLI's
--output
flag.
In either case, it's better to just use
--output
and not pass thisproperty at all; the property only has value inside tests.
I tried to add validation (by using
Annotations.of(app).addWarning()
but they areuseless anyway: in the CX protocol, metadata can only be attached to
StackArtifacts
,so metadata attached to the
App
will not be rendered.Adding a full framework feature to move metadata to a different place feels like too much
risk and work for this small note, so turned it into a documentation fix.
Fixes #3717.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license