Commit e1ec82e
committed
autogen: Add missing indirection through file cache
Symptom:
```
rm mlkem/src/native/aarch64/src/arith_native_aarch64.h
autogen
```
fails with
```
FileNotFoundError: [Errno 2] No such file or directory: \
'mlkem/src/native/aarch64/src/arith_native_aarch64.h'
```
Context:
A previous commit has introduced an internal file cache to autogen.
During main operation of autogen, all file read/write operations
should go through this in-memory cache.
Issue:
Two instance of direct FS reads via `open(...)` were overlooked
when this change was introduced, leading to an attempt to load
a file from the file system which only exists in the cache.
This commit fixes this by calling the file cache `read_file()`
operation intead.
Signed-off-by: Hanno Becker <beckphan@amazon.co.uk>1 parent f49474e commit e1ec82e
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2247 | 2247 | | |
2248 | 2248 | | |
2249 | 2249 | | |
2250 | | - | |
2251 | | - | |
| 2250 | + | |
2252 | 2251 | | |
2253 | 2252 | | |
2254 | 2253 | | |
| |||
2462 | 2461 | | |
2463 | 2462 | | |
2464 | 2463 | | |
2465 | | - | |
2466 | | - | |
| 2464 | + | |
2467 | 2465 | | |
2468 | 2466 | | |
2469 | 2467 | | |
| |||
0 commit comments