From c0f42eb71697afa1a100524d4a1787582ae3ab6c Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Sun, 18 Dec 2022 22:54:57 -0800 Subject: ci: Use Go 1.19 and update GH actions (#58) This updates sally to build and test against Go 1.19. Additionally, this upgrades the GitHub Action versions for checkout and setup-go. One of the features in setup-go v3 is that caching is built-in and opted-into with `cache: true`. Non-CI changes: gofmt, drop ioutil --- config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config.go') diff --git a/config.go b/config.go index e322da3..2588f39 100644 --- a/config.go +++ b/config.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "io/ioutil" + "os" "sort" "strings" @@ -55,7 +55,7 @@ func ensureAlphabetical(data []byte) bool { func Parse(path string) (*Config, error) { var c Config - data, err := ioutil.ReadFile(path) + data, err := os.ReadFile(path) if err != nil { return nil, err } -- cgit v1.2.3