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

chore(rosetta): _fingerprint() does not attempt to generate new fingerprint #3146

Closed
wants to merge 6 commits into from

Conversation

kaizencc
Copy link
Contributor

@kaizencc kaizencc commented Nov 9, 2021

The fingerprint property in an assembly is meant to help determine
that an assembly has been changed. However, we do not actually use
that information anywhere. Instead of spending time recalculating a
fingerprint in _fingerprint(), we now simply update the fingerprint
to **********. This allows us to remove some dependencies as well.

In addition, this PR exposes insertExample() from index.ts so that
it can be used elsewhere to insert examples into the assembly.


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

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Nov 9, 2021
@kaizencc kaizencc requested a review from rix0rrr November 9, 2021 16:15
@kaizencc kaizencc closed this Feb 14, 2022
@kaizencc kaizencc deleted the conroy/fingerprint branch August 1, 2022 20:20
mergify bot pushed a commit that referenced this pull request Aug 9, 2022
This PR is meant to do two things:

- move `replaceAssembly` to `assembly-utils.ts` in `@jsii/spec`, because it is currently being duplicated in `cdk-generate-synthetic-examples`. This causes problems whenever we try to change `replaceAssembly`, as we did in this [commit](https://github.com/aws/jsii/pull/3669/files), because we will forget to change the function in `cdk-generate-synthetic-examples`. The plan is to have `cdk-generate-synthetic-examples` reference the `replaceAssembly` function in `@jsii/spec` in a separate PR.
- finish the effort started in this closed [PR](#3146), where we meant to make sure that we don't re-fingerprint assemblies after they've been changed. It was closed due to staleness.

---

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

[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants