Commit f013611
authored
Restores the tar command to its original state (#21)
### What
This PR tries to reduce side effects by:
- Restores the `tar` command to its original state
- Narrow the ~/.cache directory to just nix and devbox
### Why
We are using `chmod u+s "$(command -v tar)"` to setuid on tar (This is
needed because we are caching `/nix/` and other directories outside of
`~`, which is owned by `root`)
This has a problem where it changes the parent directory of
`~/.cache/nix` to be owned by `root` instead of `runner`.
I thought #22
had fixed it, but we ran into similar issues when we use a go cache on
top of the devbox cache.
### Caveat
Cache enabled on self hosted Linux may stop working1 parent c1d7077 commit f013611
1 file changed
+18
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
| |||
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
125 | | - | |
| 129 | + | |
| 130 | + | |
126 | 131 | | |
127 | 132 | | |
128 | 133 | | |
| |||
134 | 139 | | |
135 | 140 | | |
136 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
0 commit comments