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

feat(jsii): Tag the jsii compiler version in the .jsii assemblies #420

Merged
merged 1 commit into from
Apr 2, 2019

Conversation

RomainMuller
Copy link
Contributor

By default, the fully qualified version number (including the commit SHA
prefix) is written in the new jsiiVersion field of the assembly,
however in order to make this friendlier to tests, there is an option to
turn over to a short format by setting the new jsii.versionFormat
key in package.json to 'short'.

Also, slightly altered the generation of the fully qualified version
name to distinguish between cases where the commit SHA was provided by
the CodeBuild environment variable, versus parsed using git rev-parse,
denoting the later is indicative of an "unreleased" version.

Fixes #412

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

By default, the fully qualified version number (including the commit SHA
prefix) is written in the new `jsiiVersion` field of the assembly,
however in order to make this friendlier to tests, there is an option to
turn over to a *short* format by setting the new `jsii.versionFormat`
key in `package.json` to `'short'`.

Also, slightly altered the generation of the fully qualified version
name to distinguish between cases where the commit SHA was provided by
the CodeBuild environment variable, versus parsed using `git rev-parse`,
denoting the later is indicative of an "unreleased" version.

Fixes #412
@RomainMuller RomainMuller requested a review from a team as a code owner April 2, 2019 09:29
@RomainMuller RomainMuller self-assigned this Apr 2, 2019
@RomainMuller RomainMuller merged commit 42dece1 into master Apr 2, 2019
@RomainMuller RomainMuller deleted the rmuller/tag-jsii-version branch April 2, 2019 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Embed the version of the JSII that was used to generate an artifact, in the artifact
2 participants