Skip to content

Allow injection of the commit hash and timestamp for hermetic builds. - #1543

Merged
cheeaun merged 5 commits into
cheeaun:mainfrom
SamirTalwar:inject-commit-hash
Jul 8, 2026
Merged

Allow injection of the commit hash and timestamp for hermetic builds.#1543
cheeaun merged 5 commits into
cheeaun:mainfrom
SamirTalwar:inject-commit-hash

Conversation

@SamirTalwar

Copy link
Copy Markdown
Contributor

Hermetic build systems, such as Nix, typically don't provide the .git directory, which means that building Phanpy will fall back to the randomly-generated commit hash and current timestamp. As a workaround, I propose allowing the packager to specify this during build time with environment variables.

I have also added some extra logging to make it clear what's going on.

Hermetic build systems, such as Nix, typically don't provide the `.git`
directory, which means that building Phanpy will fall back to the
randomly-generated commit hash and current timestamp. As a workaround, I
propose allowing the packager to specify this during build time with
environment variables.

I have also added some extra logging to make it clear what's going on.
Comment thread .prettierrc Outdated
Comment thread .prettierrc Outdated
Comment thread vite.config.js Outdated
@cheeaun
cheeaun merged commit 9c56451 into cheeaun:main Jul 8, 2026
5 checks passed
@SamirTalwar
SamirTalwar deleted the inject-commit-hash branch July 8, 2026 18:58
@SamirTalwar

Copy link
Copy Markdown
Contributor Author

Thank you!

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.

2 participants