-
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(codepipeline): add note about repoString param resolvability at runtime #27109
Conversation
@@ -102,6 +102,7 @@ export abstract class CodePipelineSource extends Step implements ICodePipelineAc | |||
* `codeBuildCloneOutput`. | |||
* | |||
* @param repoString A string that encodes owner and repository separated by a slash (e.g. 'owner/repo'). | |||
* Note: The provided string must be resolvable at runtime. Unresolved tokens will lead to runtime errors. |
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.
@Nikola-Milovic I don't like adding this between @params
. We do some weird parsing in jsii and this could ruin the [brittle] parser. Let's keep it on the same line, or show me a screenshot of what the rendered docstring looks like to prove to me that it's rendered properly.
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.
Yeah, I agree that it could cause a problem. In VSCode and Neovim it looks fine, but even in those two, there is a discrepancy as to how the output from the LSP is shown. VSCode puts it all in the same line, while Neovim retains the new line.
What do you think of the new version? Removed the extra fluff sentence and made it continuous.
A side question, how do you avoid having really long lines for these @params
if a newline can mess up the jsii parser?
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.
I'm not sure if it does mess it up. If it looks fine in VSCode when you hover over the prop then I think its fine. I was asking for a screenshot of that if you wanted to keep them on separate lines, since I am lazy and do not want to check out your branch just to check :)
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.
Thanks!
Thank you for contributing! Your pull request will be updated from main 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 main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
…runtime (#27109) This PR addresses an issue encountered when setting up an AWS CDK pipeline where unresolved token values for the `repoString` parameter led to a runtime error. The updated docstring now explicitly mentions that the `repoString` must be resolvable at runtime and that unresolved tokens are intended to be a runtime error Closes #27100. Thanks to @peterwoodworth for the quick assessment and the proposed solution to the problem. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
This PR addresses an issue encountered when setting up an AWS CDK pipeline where unresolved token values for the
repoString
parameter led to a runtime error. The updated docstring now explicitly mentions that therepoString
must be resolvable at runtime and that unresolved tokens are intended to be a runtime errorCloses #27100.
Thanks to @peterwoodworth for the quick assessment and the proposed solution to the problem.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license