Unexpected: Clan exists with empty dir after fork clan failed with 422. #458

Closed
opened 2023-11-04 10:27:04 +00:00 by hsjobeki · 1 comment
Owner

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.

# 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.
Qubasa was assigned by hsjobeki 2023-11-04 10:27:12 +00:00
Owner

Api was dropped.

Api was dropped.
Mic92 closed this issue 2024-01-02 14:54:26 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: clan/clan-core#458
No description provided.