Skip to content

Put canonicaliseTimestampAndPermissions in its own header/file#9394

Merged
roberth merged 1 commit intomasterfrom
separate-file-canonicalise
Nov 22, 2023
Merged

Put canonicaliseTimestampAndPermissions in its own header/file#9394
roberth merged 1 commit intomasterfrom
separate-file-canonicalise

Conversation

@Ericson2314
Copy link
Member

Motivation

It is not inherently tied to LocalStore, it could probably even go in libnixutil. Functions not attached to LocalStore should not be declared in local-store.hh.

Context

I am moving it to facilitate experimenting for #9344. If canonicalisation should be done client-side in client-side builds, there wouldn't be a LocalStore at all so having to include that header to get this freestanding function is cumbersome and wrong.

Perhaps canonicalisation should still be done server-side for security reasons --- I don't mean to make that judgement call now --- but even if so, this freestanding function still isn't connected to LocalStore so while less urgent it is still better to move out of this header.

Priorities

Add 👍 to pull requests you find important.

@github-actions github-actions bot added the store Issues and pull requests concerning the Nix store label Nov 19, 2023
It is not inherently tied to `LocalStore`, it could probably even go in
`libnixutil`. Functions not attached to `LocalStore` should not be
declared in `local-store.hh`.

I am moving it to facilitate experimenting for #9344. If
canonicalisation should be done client-side in client-side builds, there
wouldn't be a `LocalStore` at all so having to include that header to
get this freestanding function is cumbersome and wrong.

Perhaps canonicalisation should still be done server-side for security
reasons --- I don't mean to make that judgement call now --- but even if
so, this freestanding function still isn't connected to `LocalStore` so
while less urgent it is still better to move out of this header.
@Ericson2314 Ericson2314 force-pushed the separate-file-canonicalise branch from ea23fca to f880469 Compare November 21, 2023 17:58
@Ericson2314
Copy link
Member Author

Is this good now, @roberth ?

@roberth roberth merged commit 030fb86 into master Nov 22, 2023
@roberth roberth deleted the separate-file-canonicalise branch November 22, 2023 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

store Issues and pull requests concerning the Nix store

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants