diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 2b009a7..fb4ed8a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,12 +3,12 @@ { "name": "Go", "build": { - // "dockerfile": "Dockerfile", + "dockerfile": "Dockerfile", "args": { // Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.17 // Append -bullseye or -buster to pin to an OS version. // Use -bullseye variants on local arm64/Apple Silicon. - // "VARIANT": "1.20-bullseye", + "VARIANT": "1.20-bullseye", // Options "NODE_VERSION": "none" } diff --git a/internal/chaindb/chaindb.go b/internal/chaindb/chaindb.go index 4b98516..3cb3721 100644 --- a/internal/chaindb/chaindb.go +++ b/internal/chaindb/chaindb.go @@ -69,7 +69,7 @@ func (db *GagentDb) WriteHCL() error { agentBody.SetAttributeValue("version", cty.StringVal(row.Agent.Shasum)) } - return ioutil.WriteFile("chaindb_out.hcl", f.Bytes(), 0644) + return ioutil.WriteFile("chaindb_out.hcl", f.Bytes(), 0600) } /*