flake history: make operations atomic #594

Merged
clan-bot merged 1 commits from DavHau-dave into main 2023-12-01 07:03:19 +00:00
Owner

Prevents potential problems on concurrent requests

Prevents potential problems on concurrent requests
clan-bot was assigned by DavHau 2023-12-01 07:01:34 +00:00
DavHau added 1 commit 2023-12-01 07:01:34 +00:00
flake history: make operations atomic
All checks were successful
checks-impure / test (pull_request) Successful in 1m6s
checks / test (pull_request) Successful in 1m38s
261322fae8
clan-bot merged commit 3a478c4880 into main 2023-12-01 07:03:19 +00:00
DavHau reviewed 2023-12-01 09:12:34 +00:00
@ -10,4 +11,4 @@
async def add_flake(path: Path) -> dict[str, CmdOut]:
user_history_file().parent.mkdir(parents=True, exist_ok=True)
# append line to history file
# TODO: Make this atomic
Author
Owner

Ooops, should have removed that line. fixed in: #595

Ooops, should have removed that line. fixed in: https://git.clan.lol/clan/clan-core/pulls/595
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 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#594
No description provided.