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

This commit is contained in:
Lctrs authored and GitHub committed 2023-01-13 08:50:28 -05:00
1 parent d4001c92b2
commit cb41c16bf4
10 files changed
+536 -363

No files matched your search

+3 -3
View File
@@ -17,7 +17,7 @@ limitations under the License.
package compose
import (
"io/ioutil"
"io"
"os"
"path/filepath"
"regexp"
@@ -179,11 +179,11 @@ func normalizeNetworkNames(netName string) (string, error) {
func ReadFile(fileName string) ([]byte, error) {
if fileName == "-" {
if StdinData == nil {
data, err := ioutil.ReadAll(os.Stdin)
data, err := io.ReadAll(os.Stdin)
StdinData = data
return data, err
}
return StdinData, nil
}
return ioutil.ReadFile(fileName)
return os.ReadFile(fileName)
}