-
Notifications
You must be signed in to change notification settings - Fork 35
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: aws/aws-cdk-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: @aws-cdk/toolkit-lib@v1.1.2
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: aws/aws-cdk-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: @aws-cdk/toolkit-lib@v1.2.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 3 commits
- 15 files changed
- 5 contributors
Commits on Jun 18, 2025
-
fix: revert "retain type of context values and not convert them to st…
Configuration menu - View commit details
-
Copy full SHA for 76ac13c - Browse repository at this point
Copy the full SHA 76ac13cView commit details
Commits on Jun 19, 2025
-
feat(toolkit-lib):
fromAssemblyDirectory
can ignore missing context (……#611) Previously `fromAssemblyDirectory` created a `ContextAwareCloudAssemblySource` with lookups disabled. This would always fail if there was any missing context in the assembly, because you can't perform lookups with just the CloudAssembly directory. This PR updates the logic to use a `CachedCloudAssembly` instead and check for missing context. The missing context check can be disabled using the new `failOnMissingContext` option (defaults to fail). Resolves #549 --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license --------- Co-authored-by: Momo Kornher <mail@moritzkornher.de> Co-authored-by: Momo Kornher <kornherm@amazon.co.uk>
Configuration menu - View commit details
-
Copy full SHA for 0cba976 - Browse repository at this point
Copy the full SHA 0cba976View commit details -
docs: add .NET installation prerequisite to CONTRIBUTING.md (#612)
**.NET is required to be installed for initializing or building CDK apps in C# (and to run associated tests in repo) or else 7 tests fail during yarn build.** **Summary of all failing tests (without .NET installed):** FAIL test/cli/cdk-toolkit.test.ts (20.959 s) ● migrate › migrate call is idempotent ToolkitError: Could not add project AutoscalingCSharp.csproj to solution AutoscalingCSharp.sln. dotnet sln /var/folders/50/dwz_h2694y1grnyh6y3hxw_r0000gq/T/aws-cdk-testrevTrx/AutoscalingCSharp/src/AutoscalingCSharp.sln add /var/folders/50/dwz_h2694y1grnyh6y3hxw_r0000gq/T/aws-cdk-testrevTrx/AutoscalingCSharp/src/AutoscalingCSharp/AutoscalingCSharp.csproj exited with error code 127 106 | } catch (e: any) { 107 | if (attempt === MAX_ATTEMPTS) { > 108 | throw new ToolkitError(`Could not add project ${pname}.${ext} to solution ${pname}.sln. ${formatErrorMessage(e)}`); | ^ 109 | } 110 | 111 | // Sleep for a bit then try again at dotnetAddProject (lib/commands/init/init-hooks.ts:108:15) at InitTemplate.install (lib/commands/init/init.ts:279:5) at initializeProject (lib/commands/init/init.ts:515:3) at cliInit (lib/commands/init/init.ts:172:5) at generateCdkApp (lib/commands/migrate.ts:55:5) at CdkToolkit.migrate (lib/cli/cdk-toolkit.ts:1190:7) at test/cli/cdk-toolkit.test.ts:1557:5 at withTempDir (test/cli/cdk-toolkit.test.ts:1906:5) FAIL test/commands/migrate.test.ts (34.105 s) ● Migrate Function Tests › generateCdkApp generates the expected cdk app when called for csharp ToolkitError: Could not add project GoodCSharp.csproj to solution GoodCSharp.sln. dotnet sln /var/folders/50/dwz_h2694y1grnyh6y3hxw_r0000gq/T/aws-cdk-testH5lbPD/GoodCSharp/src/GoodCSharp.sln add /var/folders/50/dwz_h2694y1grnyh6y3hxw_r0000gq/T/aws-cdk-testH5lbPD/GoodCSharp/src/GoodCSharp/GoodCSharp.csproj exited with error code 127 106 | } catch (e: any) { 107 | if (attempt === MAX_ATTEMPTS) { > 108 | throw new ToolkitError(`Could not add project ${pname}.${ext} to solution ${pname}.sln. ${formatErrorMessage(e)}`); | ^ 109 | } 110 | 111 | // Sleep for a bit then try again at dotnetAddProject (lib/commands/init/init-hooks.ts:108:15) at InitTemplate.install (lib/commands/init/init.ts:279:5) at initializeProject (lib/commands/init/init.ts:515:3) at cliInit (lib/commands/init/init.ts:172:5) at generateCdkApp (lib/commands/migrate.ts:55:5) at test/commands/migrate.test.ts:308:5 at withTempDir (test/commands/migrate.test.ts:381:5) FAIL test/commands/init.test.ts (52.199 s) ● constructs version › verify "future flags" are added to cdk.json ToolkitError: Could not add project AwsCdkTestZQm0Yc.csproj to solution AwsCdkTestZQm0Yc.sln. dotnet sln /var/folders/50/dwz_h2694y1grnyh6y3hxw_r0000gq/T/aws-cdk-testZQm0yc/src/AwsCdkTestZQm0Yc.sln add /var/folders/50/dwz_h2694y1grnyh6y3hxw_r0000gq/T/aws-cdk-testZQm0yc/src/AwsCdkTestZQm0Yc/AwsCdkTestZQm0Yc.csproj exited with error code 127 106 | } catch (e: any) { 107 | if (attempt === MAX_ATTEMPTS) { > 108 | throw new ToolkitError(`Could not add project ${pname}.${ext} to solution ${pname}.sln. ${formatErrorMessage(e)}`); | ^ 109 | } 110 | 111 | // Sleep for a bit then try again at dotnetAddProject (lib/commands/init/init-hooks.ts:108:15) at InitTemplate.install (lib/commands/init/init.ts:279:5) at initializeProject (lib/commands/init/init.ts:515:3) at cliInit (lib/commands/init/init.ts:172:5) at test/commands/init.test.ts:392:11 at withTempDir (test/commands/init.test.ts:735:5) at Object.<anonymous> (test/commands/init.test.ts:391:9) ● constructs version › fsharp app with spaces ToolkitError: Could not add project AwsCdkTestWithSpaceCPiYtx.fsproj to solution AwsCdkTestWithSpaceCPiYtx.sln. dotnet sln '/var/folders/50/dwz_h2694y1grnyh6y3hxw_r0000gq/T/aws-cdk-test with-spaceCPiYtx/src/AwsCdkTestWithSpaceCPiYtx.sln' add '/var/folders/50/dwz_h2694y1grnyh6y3hxw_r0000gq/T/aws-cdk-test with-spaceCPiYtx/src/AwsCdkTestWithSpaceCPiYtx/AwsCdkTestWithSpaceCPiYtx.fsproj' exited with error code 127 106 | } catch (e: any) { 107 | if (attempt === MAX_ATTEMPTS) { > 108 | throw new ToolkitError(`Could not add project ${pname}.${ext} to solution ${pname}.sln. ${formatErrorMessage(e)}`); | ^ 109 | } 110 | 111 | // Sleep for a bit then try again at dotnetAddProject (lib/commands/init/init-hooks.ts:108:15) at InitTemplate.install (lib/commands/init/init.ts:279:5) at initializeProject (lib/commands/init/init.ts:515:3) at cliInit (lib/commands/init/init.ts:172:5) at test/commands/init.test.ts:290:5 at withTempDirWithSpaces (test/commands/init.test.ts:748:5) ● constructs version › csharp app with spaces ToolkitError: Could not add project AwsCdkTestWithSpacezbTern.csproj to solution AwsCdkTestWithSpacezbTern.sln. dotnet sln '/var/folders/50/dwz_h2694y1grnyh6y3hxw_r0000gq/T/aws-cdk-test with-spacezbTERN/src/AwsCdkTestWithSpacezbTern.sln' add '/var/folders/50/dwz_h2694y1grnyh6y3hxw_r0000gq/T/aws-cdk-test with-spacezbTERN/src/AwsCdkTestWithSpacezbTern/AwsCdkTestWithSpacezbTern.csproj' exited with error code 127 106 | } catch (e: any) { 107 | if (attempt === MAX_ATTEMPTS) { > 108 | throw new ToolkitError(`Could not add project ${pname}.${ext} to solution ${pname}.sln. ${formatErrorMessage(e)}`); | ^ 109 | } 110 | 111 | // Sleep for a bit then try again at dotnetAddProject (lib/commands/init/init-hooks.ts:108:15) at InitTemplate.install (lib/commands/init/init.ts:279:5) at initializeProject (lib/commands/init/init.ts:515:3) at cliInit (lib/commands/init/init.ts:172:5) at test/commands/init.test.ts:272:5 at withTempDirWithSpaces (test/commands/init.test.ts:748:5) ● constructs version › create a .NET app project in fsharp ToolkitError: Could not add project AwsCdkTestnKihpy.fsproj to solution AwsCdkTestnKihpy.sln. dotnet sln /var/folders/50/dwz_h2694y1grnyh6y3hxw_r0000gq/T/aws-cdk-testnKIHPY/src/AwsCdkTestnKihpy.sln add /var/folders/50/dwz_h2694y1grnyh6y3hxw_r0000gq/T/aws-cdk-testnKIHPY/src/AwsCdkTestnKihpy/AwsCdkTestnKihpy.fsproj exited with error code 127 106 | } catch (e: any) { 107 | if (attempt === MAX_ATTEMPTS) { > 108 | throw new ToolkitError(`Could not add project ${pname}.${ext} to solution ${pname}.sln. ${formatErrorMessage(e)}`); | ^ 109 | } 110 | 111 | // Sleep for a bit then try again at dotnetAddProject (lib/commands/init/init-hooks.ts:108:15) at InitTemplate.install (lib/commands/init/init.ts:279:5) at initializeProject (lib/commands/init/init.ts:515:3) at cliInit (lib/commands/init/init.ts:172:5) at test/commands/init.test.ts:250:5 at withTempDir (test/commands/init.test.ts:735:5) ● constructs version › create a .NET app project in csharp ToolkitError: Could not add project AwsCdkTestNkkhrd.csproj to solution AwsCdkTestNkkhrd.sln. dotnet sln /var/folders/50/dwz_h2694y1grnyh6y3hxw_r0000gq/T/aws-cdk-testNkkhrd/src/AwsCdkTestNkkhrd.sln add /var/folders/50/dwz_h2694y1grnyh6y3hxw_r0000gq/T/aws-cdk-testNkkhrd/src/AwsCdkTestNkkhrd/AwsCdkTestNkkhrd.csproj exited with error code 127 106 | } catch (e: any) { 107 | if (attempt === MAX_ATTEMPTS) { > 108 | throw new ToolkitError(`Could not add project ${pname}.${ext} to solution ${pname}.sln. ${formatErrorMessage(e)}`); | ^ 109 | } 110 | 111 | // Sleep for a bit then try again at dotnetAddProject (lib/commands/init/init-hooks.ts:108:15) at InitTemplate.install (lib/commands/init/init.ts:279:5) at initializeProject (lib/commands/init/init.ts:515:3) at cliInit (lib/commands/init/init.ts:172:5) at test/commands/init.test.ts:228:5 at withTempDir (test/commands/init.test.ts:735:5) Fixes # --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license Co-authored-by: Momo Kornher <kornherm@amazon.co.uk>
Configuration menu - View commit details
-
Copy full SHA for d758c9f - Browse repository at this point
Copy the full SHA d758c9fView commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff @aws-cdk/toolkit-lib@v1.1.2...@aws-cdk/toolkit-lib@v1.2.0