-
Notifications
You must be signed in to change notification settings - Fork 4.1k
aws-codepipeline-actions: Problem Cloning the AWS CDK Repository on Windows #32808
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
Comments
For anyone who encounter this issue, here is a temporarily:
|
Got below error while cloning on Windows:
Character |
Seeking Team's insights on this issue for further analysis. |
I looked into why the repo has files with The
Then when the CDK app get synthesized, the generate template file name is based on the stack id, hence, inherited the Looking at the code, I do not see a prop on |
@samson-keung Thanks for this. I'm wondering why are you suggesting feature flag. May I make a PR and just replace |
@azarboon It has to be behind feature flag because changing the id of the nested stack can cause behavioural changes to existing CDK apps. E.g. the nested stack being replaced or a new stack being created. There may be other cases where CDK users are relying on reading the stack id. A reference in the Contribution Guide about breaking changes: https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md#breaking-changes Please feel free to open a PR! Contributions are always welcome. |
@samson-keung Thank you for your response. However, I am currently facing some challenges with creating pull requests. I have detailed the issue in #32910. Could you please assist me with resolving this? Once the issue is addressed, I will proceed with the task. |
Comments on closed issues and PRs are hard for our team to see. |
1 similar comment
Comments on closed issues and PRs are hard for our team to see. |
…IDs (aws#33863) ### Issue Closes aws#32808 Minimal reproduction: ```ts const app = new cdk.App(); const stack = new cdk.Stack(app, 'Stack:Test', { stackName: "valid" }); assert(!stack.artifactId.match(/[^A-Za-z0-9_\-\.]/g)) ``` ### Reason for this change When users create a `Stack` with an id containing certain special characters, the produced artifact file name would contain invalid characters. ### Description of changes Ensure only valid artifact files names are produces, no matter the input. ### Describe any new or updated permissions being added n/a ### Description of how you validated changes New unit tests, existing test suite I have updated the integ test using `--dry-run` as per instructions in the test file. I have deployed the integ test using the instructions in the test file. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Describe the bug
When cloning the AWS CDK repository on a Windows system, I encountered issues where certain files appear in the Git index but are not present on the filesystem. This causes
git status
to show these files as deleted, and attempts to restore or interact with them fail. The issue might be related to Windows' filesystem limitations, but the root cause remains unclear.To fix the issue, I cloned the repository using Windows Subsystem for Linux (WSL) in VS Code, the Bash terminal in VS Code, and Git Desktop's Bash, but none of these helped. I also changed case sensitivity (through
core.ignorecase
), enabled long file paths (throughcore.longpaths
), and modified the Windows registry, but this did not resolve the problem.Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
The repository should clone successfully on Windows, with all files checked out to the filesystem as expected. Running
git status
andgit diff
after merging updates fromupstream/main
should not show any unexpected deletions or errors related to file handling. Cross-platform compatibility issues, if present, should be handled gracefully to allow contributors to work seamlessly regardless of their operating system.Current Behavior
Also,
Also,
Reproduction Steps
Possible Solution
_
or-
).Additional Information/Context
No response
CDK CLI Version
2.173.2 (build f8e6207)
Framework Version
No response
Node.js Version
v22.9.0
OS
Windows 11 Home Single Language - version 23H2 - OS build 22631.4602
Language
TypeScript
but seems this issue is agnostic of language.
Language Version
No response
Other information
Git: Version 2.42
Cloning method: Git Bash / WSL / GitHub Desktop
Repository: AWS CDK (main branch)
The text was updated successfully, but these errors were encountered: