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

Content addressing store objects #10722

Merged
merged 2 commits into from
May 20, 2024
Merged

Conversation

Ericson2314
Copy link
Member

@Ericson2314 Ericson2314 commented May 15, 2024

Motivation

Also, the JSON format no longer uses the legacy ATerm r: prefixing nonsense, but separate fields.

Context

Next item from #6877. Following up on #10479.

Progress on #9866

Priorities and Process

Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@github-actions github-actions bot added the new-cli Relating to the "nix" command label May 17, 2024
@Ericson2314 Ericson2314 force-pushed the ca-obj-docs branch 2 times, most recently from d922cf6 to f18cb05 Compare May 17, 2024 22:53
@Ericson2314 Ericson2314 marked this pull request as ready for review May 17, 2024 23:12
@Ericson2314 Ericson2314 force-pushed the ca-obj-docs branch 3 times, most recently from e0c9e21 to dbbbf3a Compare May 17, 2024 23:25
@Ericson2314 Ericson2314 changed the title Super WIP: content addressing store objects Content addressing store objects May 17, 2024
doc/manual/src/protocols/json/derivation.md Show resolved Hide resolved
doc/manual/src/store/store-object/content-address.md Outdated Show resolved Hide resolved
doc/manual/src/store/store-object/content-address.md Outdated Show resolved Hide resolved
doc/manual/src/store/store-object/content-address.md Outdated Show resolved Hide resolved
doc/manual/src/store/store-object/content-address.md Outdated Show resolved Hide resolved
doc/manual/src/store/store-object/content-address.md Outdated Show resolved Hide resolved
doc/manual/src/store/store-object/content-address.md Outdated Show resolved Hide resolved
doc/manual/src/store/store-object/content-address.md Outdated Show resolved Hide resolved
doc/manual/src/store/store-object/content-address.md Outdated Show resolved Hide resolved
},
[&](const DerivationOutput::Deferred &) {},
[&](const DerivationOutput::Impure & doi) {
res["hashAlgo"] = std::string { doi.method.renderPrefix() } + printHashAlgo(doi.hashAlgo);
res["method"] = std::string { doi.method.render() };
res["hashAlgo"] = printHashAlgo(doi.hashAlgo);
res["impure"] = true;
},
}, raw);
Copy link
Member

Choose a reason for hiding this comment

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

Wasn't expecting a behavior change.
Is DerivationOutput JSON exposed to builds? That'd be a problem if so.
Otherwise, please add a release note.

Copy link
Member

Choose a reason for hiding this comment

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

thought: We should have JSON schemas.

Copy link
Member Author

Choose a reason for hiding this comment

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

It is not exposed to builds, thankfully. Just the CLI. (You are thinking of the path-info JSON.)

Ericson2314 and others added 2 commits May 20, 2024 09:34
The JSON format no longer uses the legacy ATerm `r:` prefixing nonsese,
but separate fields.

Progress on NixOS#9866

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
@roberth roberth enabled auto-merge May 20, 2024 13:54
@roberth roberth merged commit 67db9e0 into NixOS:master May 20, 2024
8 checks passed
@Ericson2314 Ericson2314 deleted the ca-obj-docs branch May 20, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation new-cli Relating to the "nix" command
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants