-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
CDK Pipeline: No matching version found for cdk-assets@2.74.0. #25143
Comments
Hi
What made it install |
Hi The basis is the CDK project structure for Python (https://github.com/aws-samples/aws-cdk-project-structure-python). Add 2.75.0 as well |
@pahud It looks like publish asset action is what adds an I'm hitting this issue when I upgrade as well. It is possible we are doing something unusual or else I figure this would be a much more wide spread problem. If I had to guess, I'd say is it because we are overriding the cliVersion with a version of cdk-assets that is not being published. In this case, that would be anything after 2.72.1. Is there a reason that the non-alpha versions of the cdk-assets stopped being published to NPM after 2.72.1? |
We've already been publishing with a stable version for a long time. A recent change to the repo structure caused us to publish with alpha versions, but let's just mark it as stable instead. fixes #25143
|
We've already been publishing with a stable version for a long time. A recent change to the repo structure caused us to publish with alpha versions, but let's just mark it as stable instead. fixes #25143
Describe the bug
There is no cdk-assets@2.74.0 package in the NPM repo, only 2.74.0-alpha.0.
Codebuild fails with the following message,
[Container] 2023/04/14 16:05:53 Entering phase INSTALL
19 | [Container] 2023/04/14 16:05:53 Running command npm install -g cdk-assets@2.74.0
20 | npm ERR! code ETARGET
21 | npm ERR! notarget No matching version found for cdk-assets@2.74.0.
22 | npm ERR! notarget In most cases you or one of your dependencies are requesting
23 | npm ERR! notarget a package version that doesn't exist.
24 |
25 | npm ERR! A complete log of this run can be found in:
26 | npm ERR! /root/.npm/_logs/2023-04-14T16_06_04_638Z-debug-0.log
27 |
28 | [Container] 2023/04/14 16:06:06 Command did not exit successfully npm install -g cdk-assets@2.74.0 exit status 1
29 | [Container] 2023/04/14 16:06:06 Phase complete: INSTALL State: FAILED
30 | [Container] 2023/04/14 16:06:06 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: npm install -g cdk-assets@2.74.0. Reason: exit status 1
Expected Behavior
success.
Current Behavior
fails on missing package in NPM repo.
Reproduction Steps
CDK Pipeline using CDK 2.74.0
Possible Solution
add package to NPM
Additional Information/Context
No response
CDK CLI Version
2.74.0
Framework Version
No response
Node.js Version
latest AL2 codebuild image
OS
AL2
Language
Python
Language Version
any
Other information
No response
The text was updated successfully, but these errors were encountered: