Unexpected: Clan exists with empty dir after fork clan failed with 422. #458
Labels
No Label
backups
blog
bootstrapping
bug
changes-requested
cli
documentation
duplicate
enhancement
facts
help wanted
invalid
Inventory
low_prio
manager
modules
needs-review
networking
packaging
question
secrets
template
test
tooling
user-testing
vm
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: clan/clan-core#458
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug description
POST /flake/create
payload:
https://git.clan.lol/clan/democlan/archive/main.tar.gz, name: "democlan-fork"
ClanError:
command: nix --extra-experimental-features 'nix-command flakes' flake init -t https://git.clan.lol/clan/democlan/archive/main.tar.gz
working directory: /home/johannes/.local/state/clan/flake/democlan-fork
exit code: 1
stderr:
error: flake 'https://git.clan.lol/clan/democlan/archive/main.tar.gz' does not provide attribute 'templates.default' or 'defaultTemplate'
After the failed API request an empty directory exists.
~/.local/state/clan/flake/democlan-fork/
Also GET api/flakes/list says there is a flake.
Expected.
Don't create an empty folder.
GET /api/flakes/list should not indicate that the flake is create when it is not.
In general i don't expect failed API calls to change any state.
Api was dropped.