Skip to content

Conversation

@davidweisse
Copy link
Contributor

This makes it easier to apply the reference values to the current manifest, thus making it easier to update the refernce values and configure reference values per host.

@davidweisse davidweisse added the no changelog PRs not listed in the release notes label Jan 28, 2026
Copy link
Member

@katexochen katexochen left a comment

Choose a reason for hiding this comment

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

Thanks, great work!

patchedManifest := patchFn(m)
patchedManifest, err := patchFn(m)
if err != nil {
return err
Copy link
Member

Choose a reason for hiding this comment

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

nit: wrap the error with

Comment on lines +49 to +55
declare -A specs=(
["Metal-QEMU-SNP"]="./dev-docs/e2e/palutena/manifest.json"
["Metal-QEMU-TDX"]="./dev-docs/e2e/olimar/manifest.json"
["Metal-QEMU-SNP-GPU"]="./dev-docs/e2e/discovery/manifest.json"
["Metal-QEMU-SNP-DEV"]="./dev-docs/e2e/hetzner-ax162-snp/manifest.json"
["Metal-QEMU-TDX-GPU"]="./dev-docs/e2e/l-bgx-02/manifest.json"
)
Copy link
Member

Choose a reason for hiding this comment

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

Could we maybe use something like

./dev-docs/e2e/$(hostname)/manifest.json

instead?

Copy link
Member

Choose a reason for hiding this comment

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

If you like, open an upstream PR in nixpkgs with this! Otherwise I can take care of that. :)

Also, try to use nix-init to get a boilerplate for packaging upstream stuff, it will fetch all the required metadata!

fetchFromGitHub,
}:

buildGoModule {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
buildGoModule {
buildGoModule (finalAttrs: {


buildGoModule {
pname = "json-patch";
version = "v5.9.11";
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
version = "v5.9.11";
version = "5.9.11";

src = fetchFromGitHub {
owner = "evanphx";
repo = "json-patch";
rev = "v5.9.11";
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
rev = "v5.9.11";
tag = "v${finalAttrs.version}";

modRoot = "v5";

vendorHash = "sha256-W6XVd68MS0ungMgam8jefYMVhyiN6/DB+bliFzs2rdk=";
}
Copy link
Member

Choose a reason for hiding this comment

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

Please add meta attribute (use nix-init).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog PRs not listed in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants