chore: require go >=1.18, bump deps and get rid of replace directives (#1552)

This commit is contained in:
Lctrs
2023-01-13 08:50:28 -05:00
committed by GitHub
parent d4001c92b2
commit cb41c16bf4
10 changed files with 536 additions and 363 deletions
+1 -2
View File
@@ -18,7 +18,6 @@ package transformer
import (
"fmt"
"io/ioutil"
"os"
"os/exec"
"path"
@@ -290,7 +289,7 @@ func Print(name, path string, trailing string, data []byte, toStdout, generateJS
} else {
// Write content separately to each file
file = filepath.Join(path, file)
if err := ioutil.WriteFile(file, data, 0644); err != nil {
if err := os.WriteFile(file, data, 0644); err != nil {
return "", errors.Wrap(err, "Failed to write %s: "+trailing)
}
log.Printf("%s file %q created", formatProviderName(provider), file)