Skip to content

template string replacement overwrites the cachix cache name assuming user has already created one for their template instance #36

@cameronraysmith

Description

@cameronraysmith

Initializing the template with the one-line command from the README for a hypothetical workspace repo named pnt-mono

nix --accept-flake-config run github:juspay/omnix -- init github:sciexp/python-nix-template -o pnt-mono --non-interactive --params '{
"package-name-kebab-case": "pnt-mono",
"package-name-snake-case": "pnt_mono",
"monorepo-package": true,
"git-org": "pnt-mono",
"author": "Pnt Mono",
"author-email": "[email protected]",
"vscode": true,
"github-ci": true,
"nix-template": false
}' && \
cd pnt-mono && \
git init && \
git commit --allow-empty -m "initial commit (empty)" && \
git add . && \
nix develop --accept-flake-config -c pytest

implicitly assumes the user has already created a cachix cache with the name of the repo.

This doesn't cause a problem initializing the template, but it produces an error during template initialization that could be confusing

warning: unable to download 'https://pnt-mono.cachix.org/nix-cache-info': HTTP error 401

         response body:

         Binary cache pnt-mono doesn't exist or you're not authorized to access. Please check the name for typos and/or provide an auth token. Contact support on https://cachix.org if you're stuck!

and would continue to appear in the CI logs unless the user updated the template or created the cache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions