File tree Expand file tree Collapse file tree 4 files changed +4
-12
lines changed Expand file tree Collapse file tree 4 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ module github.com/jfrog/gofrog
3
3
go 1.20
4
4
5
5
require (
6
- github.com/cespare/xxhash v1.1.0
7
6
github.com/jfrog/archiver/v3 v3.6.0
8
7
github.com/pkg/errors v0.9.1
9
8
github.com/stretchr/testify v1.8.4
Original file line number Diff line number Diff line change 1
- github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE =
2
- github.com/OneOfOne/xxhash v1.2.2 /go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU =
3
1
github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1U3M =
4
2
github.com/andybalholm/brotli v1.1.0 /go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY =
5
- github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko =
6
- github.com/cespare/xxhash v1.1.0 /go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc =
7
3
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
8
4
github.com/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
9
5
github.com/dsnet/compress v0.0.1 h1:PlZu0n3Tuv04TzpfPbrnI0HW/YwodEXDS+oPKahKF0Q =
@@ -27,8 +23,6 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
27
23
github.com/pkg/errors v0.9.1 /go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0 =
28
24
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
29
25
github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
30
- github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72 h1:qLC7fQah7D6K1B0ujays3HV9gkFtllcxhzImRR7ArPQ =
31
- github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72 /go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA =
32
26
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk =
33
27
github.com/stretchr/testify v1.8.4 /go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo =
34
28
github.com/ulikunitz/xz v0.5.6 /go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8 =
Original file line number Diff line number Diff line change 1
- package multipart
1
+ package filestream
2
2
3
3
import (
4
4
"errors"
Original file line number Diff line number Diff line change 1
- package multipart
1
+ package filestream
2
2
3
3
import (
4
4
"bytes"
5
5
"github.com/stretchr/testify/assert"
6
6
"io"
7
7
"mime/multipart"
8
8
"os"
9
- "path"
10
9
"path/filepath"
11
10
"testing"
12
11
)
@@ -17,8 +16,8 @@ func TestReadFilesFromStream(t *testing.T) {
17
16
sourceDir := t .TempDir ()
18
17
19
18
// Create 2 file to be transferred via our multipart stream
20
- file1 := path .Join (sourceDir , "test1.txt" )
21
- file2 := path .Join (sourceDir , "test2.txt" )
19
+ file1 := filepath .Join (sourceDir , "test1.txt" )
20
+ file2 := filepath .Join (sourceDir , "test2.txt" )
22
21
file1Content := []byte ("test content1" )
23
22
file2Content := []byte ("test content2" )
24
23
assert .NoError (t , os .WriteFile (file1 , file1Content , 0600 ))
You can’t perform that action at this time.
0 commit comments