From e68dbe9cf8cfd06d9205e4346412c90691f78e60 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 30 Mar 2021 15:41:54 -0600 Subject: [PATCH] Change os to ioutil for now My editor automatically changed ioutil.ReadFile() to os.ReadFile() in accordance with Go 1.16 changes. I didn't notice this until pushing. But we still have to support Go 1.15 for a little while. --- caddy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caddy.go b/caddy.go index dcbcb2dd..0c1ed977 100644 --- a/caddy.go +++ b/caddy.go @@ -669,7 +669,7 @@ func ParseDuration(s string) (time.Duration, error) { // have its own unique ID. func InstanceID() (uuid.UUID, error) { uuidFilePath := filepath.Join(AppDataDir(), "instance.uuid") - uuidFileBytes, err := os.ReadFile(uuidFilePath) + uuidFileBytes, err := ioutil.ReadFile(uuidFilePath) if os.IsNotExist(err) { uuid, err := uuid.NewRandom() if err != nil {