diff options
author | Alan Pearce | 2024-06-13 20:51:49 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-13 20:52:16 +0200 |
commit | f690e8cb7a820b0685b98f83a6761cfc169487e4 (patch) | |
tree | 3102375c3c3c9461776a79082f4db9898c1eee5e /cmd/build | |
parent | 6b1697144e6261c09f1d2c254cf33d39f02ce92e (diff) | |
download | website-f690e8cb7a820b0685b98f83a6761cfc169487e4.tar.lz website-f690e8cb7a820b0685b98f83a6761cfc169487e4.tar.zst website-f690e8cb7a820b0685b98f83a6761cfc169487e4.zip |
hash style elements during build step
Diffstat (limited to 'cmd/build')
-rw-r--r-- | cmd/build/main.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd/build/main.go b/cmd/build/main.go index 0b1cc46..d6b44d4 100644 --- a/cmd/build/main.go +++ b/cmd/build/main.go @@ -31,8 +31,8 @@ func main() { log.Panic("could not change to source directory") } } - - if err := builder.BuildSite(ioConfig); err != nil { + r, err := builder.BuildSite(ioConfig) + if err != nil { switch cause := errors.Cause(err).(type) { case *fs.PathError: log.Error("path error", "error", err) @@ -43,4 +43,8 @@ func main() { } os.Exit(1) } + + for _, h := range r.Hashes { + fmt.Printf("'%s'\n", h) + } } |