Replies: 1 comment
|
A Git URL in For a one-off TypeScript/JavaScript staging test, build the exact commit first: git clone https://github.com/aws/aws-cdk.git
cd aws-cdk
git checkout <full-commit-sha>
yarn install --frozen-lockfile
npx lerna run build --scope=aws-cdk-libThose are the repository's documented For a local consuming app, the supported development shortcut is then: cd /path/to/your-cdk-app
/path/to/aws-cdk/link-all.sh
For a reproducible CI/staging environment, do not commit those symlinks. Package the already-built module into a tarball (or publish that tarball to your private registry) and pin the artifact by checksum: cd /path/to/aws-cdk/packages/aws-cdk-lib
npm pack
# produces an aws-cdk-lib-0.0.0.tgz development artifactThen copy the tarball into the staging app, for example: {
"dependencies": {
"aws-cdk-lib": "file:vendor/aws-cdk-lib-0.0.0.tgz",
"constructs": "^10.0.0"
}
}Commit the resulting lockfile. In CI, also record the upstream commit SHA next to the artifact; the A few cautions:
So: an exact-commit test is possible, but it is a build-and-package workflow, not a direct If this gives you a reproducible staging install, please mark it as the accepted answer so future contributors can find the distinction quickly. |
Uh oh!
There was an error while loading. Please reload this page.
A PR was just merged to
aws-cdkthat we would like to test out in our staging environment.Is there a way to install a specific git commit version of
aws-cdk-libin ourpackage.jsonand have it download/build correctly?All reactions