Skip to content
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

Closed
vaneek opened this issue Apr 16, 2023 · 4 comments · Fixed by #25319
Closed

CDK Pipeline: No matching version found for cdk-assets@2.74.0. #25143

vaneek opened this issue Apr 16, 2023 · 4 comments · Fixed by #25319
Labels
@aws-cdk/pipelines CDK Pipelines library

Comments

@vaneek
Copy link

vaneek commented Apr 16, 2023

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

@vaneek vaneek added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Apr 16, 2023
@github-actions github-actions bot added the @aws-cdk/pipelines CDK Pipelines library label Apr 16, 2023
@pahud
Copy link
Contributor

pahud commented Apr 17, 2023

Hi

Running command npm install -g cdk-assets@2.74.0

What made it install cdk-assets@2.74.0 from the CodeBuild?

@pahud pahud added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Apr 17, 2023
@vaneek
Copy link
Author

vaneek commented Apr 17, 2023

Hi

Running command npm install -g cdk-assets@2.74.0

What made it install cdk-assets@2.74.0 from the CodeBuild?

Hi The basis is the CDK project structure for Python (https://github.com/aws-samples/aws-cdk-project-structure-python).
Updating the package.json to 2.74.0 cause the CDK Pipeline to run the install.
The versioning of the cdk-assets seems to have changed with versions 2.73.0 and 2.74.0 having the alpha extensions added. Looking at the NPM repo, prior versions did not do that.

Add 2.75.0 as well

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Apr 17, 2023
@sethmiller
Copy link

sethmiller commented Apr 25, 2023

What made it install cdk-assets@2.74.0 from the CodeBuild?

@pahud It looks like publish asset action is what adds an install command to the buildspec.

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?

rix0rrr pushed a commit that referenced this issue Apr 26, 2023
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
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

madeline-k pushed a commit that referenced this issue Apr 27, 2023
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/pipelines CDK Pipelines library
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants