Skip to content

Commit c8b16f6

Browse files
committed
*.go: move the carrierd archive/tar to internal/
The feature of golang having source in a project path with "internal" makes the code only able to be imported by the project itself. https://docs.google.com/document/d/1e8kOo3r51b2BWtTs_1uADIA5djfXhPT36s6eHVRIvaU/edit?tab=t.0 Since we have this carried version of `archive/tar` with our byte accounting patches, it is also means the version of archive/tar has not kept up with upstream. our tar-split libraries do not even utilize all the function calls of our carried archive/tar, so might as well limit anyone else in the world from calling them as well. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
1 parent 42a2f59 commit c8b16f6

61 files changed

Lines changed: 6 additions & 5 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cmd/tar-split/tar_benchmark_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
upTar "archive/tar"
99

10-
ourTar "github.com/vbatts/tar-split/archive/tar"
10+
ourTar "github.com/vbatts/tar-split/internal/archive/tar"
1111
)
1212

1313
var testfile = "../../archive/tar/testdata/sparse-formats.tar"
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
package tar_test
66

77
import (
8-
"archive/tar"
98
"bytes"
109
"fmt"
1110
"io"
1211
"log"
1312
"os"
13+
14+
"github.com/vbatts/tar-split/internal/archive/tar"
1415
)
1516

1617
func Example_minimal() {

0 commit comments

Comments
 (0)