mirror of
https://github.com/safing/portbase
synced 2025-09-01 01:59:48 +00:00
Use forked renameio package
This commit is contained in:
parent
677511bbb7
commit
f6ec0514ff
5 changed files with 3 additions and 16 deletions
|
@ -19,8 +19,7 @@ import (
|
|||
"github.com/safing/portbase/database/query"
|
||||
"github.com/safing/portbase/database/record"
|
||||
"github.com/safing/portbase/database/storage"
|
||||
|
||||
"github.com/google/renameio"
|
||||
"github.com/safing/portbase/utils/renameio"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
5
go.mod
5
go.mod
|
@ -38,8 +38,3 @@ require (
|
|||
google.golang.org/protobuf v1.25.0 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
|
||||
)
|
||||
|
||||
// The follow-up commit removes Windows support.
|
||||
// TODO: Check how we want to handle this in the future, possibly ingest
|
||||
// needed functionality into here.
|
||||
require github.com/google/renameio v0.1.1-0.20200217212219-353f81969824
|
||||
|
|
2
go.sum
2
go.sum
|
@ -110,8 +110,6 @@ github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXi
|
|||
github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
|
||||
github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
|
||||
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
|
||||
github.com/google/renameio v0.1.1-0.20200217212219-353f81969824 h1:9q700G0beHecUuiZOuKgNqNsGQixTeDLnzVZ5nsW3lc=
|
||||
github.com/google/renameio v0.1.1-0.20200217212219-353f81969824/go.mod h1:t/HQoYBZSsWSNK35C6CO/TpPLDVWvxOHboWUAweKUpk=
|
||||
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
|
||||
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
|
||||
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
|
||||
|
|
|
@ -12,9 +12,8 @@ import (
|
|||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"github.com/google/renameio"
|
||||
|
||||
"github.com/safing/portbase/log"
|
||||
"github.com/safing/portbase/utils/renameio"
|
||||
)
|
||||
|
||||
func (reg *ResourceRegistry) fetchFile(ctx context.Context, client *http.Client, rv *ResourceVersion, tries int) error {
|
||||
|
|
|
@ -5,11 +5,7 @@ import (
|
|||
"io"
|
||||
"os"
|
||||
|
||||
// Version is fixed to commit 353f8196982447d8b12c64f69530e657331e3dbc.
|
||||
// The follow-up commit removes Windows support.
|
||||
// TOOD: Check how we want to handle this in the future, possibly ingest
|
||||
// needed functionality into here.
|
||||
"github.com/google/renameio"
|
||||
"github.com/safing/portbase/utils/renameio"
|
||||
)
|
||||
|
||||
// AtomicFileOptions holds additional options for manipulating
|
||||
|
|
Loading…
Add table
Reference in a new issue