You've already forked goreleaser
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:
committed by
GitHub
parent
95bef19280
commit
5866b9cb63
@ -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{
|
||||
|
Reference in New Issue
Block a user