Commit e408c10
committed
Clone Kayobe into a tempdir when doing version checks
Cloning Kayobe as part of check-kayobe-version.yml
would fail with POSIX permission errors when it was run by multiple users, because the clone destination
directory is a) always the same and b) never cleaned up.
Clone Kayobe into a unique directory each time using
ansible.builtin.tempfile and clean up the directory tree
when it is no longer needed. This ensures that each
user that runs check-kayobe-version.yml gets a
Kayobe checkout to a unique path, and not one that
already exists and is owned by someone else.1 parent d2a7883 commit e408c10
File tree
2 files changed
+17
-2
lines changed- etc/kayobe/ansible
- releasenotes/notes
2 files changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
32 | 37 | | |
33 | 38 | | |
34 | 39 | | |
35 | | - | |
| 40 | + | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
41 | | - | |
| 46 | + | |
42 | 47 | | |
43 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
44 | 54 | | |
45 | 55 | | |
46 | 56 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments