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
+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)
}