Skip to content

feat: make the cache manifest more deterministic#53

Merged
dsherret merged 1 commit intodenoland:mainfrom
zebreus:main
Jul 19, 2024
Merged

feat: make the cache manifest more deterministic#53
dsherret merged 1 commit intodenoland:mainfrom
zebreus:main

Conversation

@zebreus
Copy link
Contributor

@zebreus zebreus commented Jul 16, 2024

This PR adjusts the cache manifest to make the generated manifest.json it more deterministic to improve the reproducability of vendored dependencies. The order of entries in the cache manifest previously depended on the order in which they were added.

@CLAassistant
Copy link

CLAassistant commented Jul 16, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@dsherret dsherret merged commit dbf8c83 into denoland:main Jul 19, 2024
@dsherret
Copy link
Member

This is released in 0.10.2 in case you want to open a PR in the CLI repo bumping it. Otherwise I'll get to it soon.

@zebreus
Copy link
Contributor Author

zebreus commented Jul 20, 2024

I opened a PR in the deno CLI repo that bumps the dependency.

dsherret pushed a commit to denoland/deno that referenced this pull request Jul 21, 2024
This PR will bump the deno_cache_dir dependency from 0.10.0 to 0.10.2.
This will make the cache manifest at manifest.json more deterministic
(see denoland/deno_cache_dir#53 )

<!--
Before submitting a PR, please read
https://docs.deno.com/runtime/manual/references/contributing

1. Give the PR a descriptive title.

  Examples of good title:
    - fix(std/http): Fix race condition in server
    - docs(console): Update docstrings
    - feat(doc): Handle nested reexports

  Examples of bad title:
    - fix #7123
    - update docs
    - fix bugs

2. Ensure there is a related issue and it is referenced in the PR text.
3. Ensure there are tests that cover the changes.
4. Ensure `cargo test` passes.
5. Ensure `./tools/format.js` passes without changing files.
6. Ensure `./tools/lint.js` passes.
7. Open as a draft PR if your work is still in progress. The CI won't
run
   all steps, but you can add '[ci]' to a commit message to force it to.
8. If you would like to run the benchmarks on the CI, add the 'ci-bench'
label.
-->
bartlomieju pushed a commit to denoland/deno that referenced this pull request Jul 22, 2024
This PR will bump the deno_cache_dir dependency from 0.10.0 to 0.10.2.
This will make the cache manifest at manifest.json more deterministic
(see denoland/deno_cache_dir#53 )

<!--
Before submitting a PR, please read
https://docs.deno.com/runtime/manual/references/contributing

1. Give the PR a descriptive title.

  Examples of good title:
    - fix(std/http): Fix race condition in server
    - docs(console): Update docstrings
    - feat(doc): Handle nested reexports

  Examples of bad title:
    - fix #7123
    - update docs
    - fix bugs

2. Ensure there is a related issue and it is referenced in the PR text.
3. Ensure there are tests that cover the changes.
4. Ensure `cargo test` passes.
5. Ensure `./tools/format.js` passes without changing files.
6. Ensure `./tools/lint.js` passes.
7. Open as a draft PR if your work is still in progress. The CI won't
run
   all steps, but you can add '[ci]' to a commit message to force it to.
8. If you would like to run the benchmarks on the CI, add the 'ci-bench'
label.
-->
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.

3 participants