diff options
author | Julien Dessaux | 2024-02-26 23:20:56 +0100 |
---|---|---|
committer | Julien Dessaux | 2024-03-07 01:01:20 +0100 |
commit | 8dca1ec3aab9d9d6c49bf6d053e7ba569415f2a9 (patch) | |
tree | 906135797cf5597e403e7ac21192931f159024a6 | |
parent | feat(variables): implemented a list of strings value type for template variables (diff) | |
download | gonf-8dca1ec3aab9d9d6c49bf6d053e7ba569415f2a9.tar.gz gonf-8dca1ec3aab9d9d6c49bf6d053e7ba569415f2a9.tar.bz2 gonf-8dca1ec3aab9d9d6c49bf6d053e7ba569415f2a9.zip |
fix(files): fixed file promises when a file does not already exist
-rw-r--r-- | go.mod | 2 | ||||
-rw-r--r-- | gonf/files.go | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1,3 +1,3 @@ module git.adyxax.org/adyxax/gonf/v2 -go 1.21.5 +go 1.22.0 diff --git a/gonf/files.go b/gonf/files.go index 974c19c..35420d4 100644 --- a/gonf/files.go +++ b/gonf/files.go @@ -71,7 +71,7 @@ func (f *FilePromise) Resolve() { var sumFile []byte sumFile, f.err = sha256sumOfFile(filename) if f.err != nil { - if errors.Is(f.err, fs.ErrNotExist) { + if !errors.Is(f.err, fs.ErrNotExist) { slog.Error("file", "filename", f.filename, "status", f.status, "error", f.err) f.status = BROKEN return |