1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-03 00:57:43 +02:00

refactor: use os and io packages intead of ioutil when possible (#2189)

This commit is contained in:
Carlos Alexandro Becker
2021-04-25 13:00:51 -03:00
committed by GitHub
parent 95bef19280
commit 5866b9cb63
31 changed files with 112 additions and 128 deletions

View File

@ -1,7 +1,6 @@
package blob
import (
"io/ioutil"
"os"
"path/filepath"
"strings"
@ -126,8 +125,8 @@ func pipePublish(t *testing.T, extra []config.ExtraFile) {
var folder = t.TempDir()
tgzpath := filepath.Join(folder, "bin.tar.gz")
debpath := filepath.Join(folder, "bin.deb")
require.NoError(t, ioutil.WriteFile(tgzpath, []byte("fake\ntargz"), 0744))
require.NoError(t, ioutil.WriteFile(debpath, []byte("fake\ndeb"), 0744))
require.NoError(t, os.WriteFile(tgzpath, []byte("fake\ntargz"), 0744))
require.NoError(t, os.WriteFile(debpath, []byte("fake\ndeb"), 0744))
// Azure Blob Context
var azblobctx = context.New(config.Project{