Skip to content

Commit

Permalink
*.go: move the carrierd archive/tar to internal/
Browse files Browse the repository at this point in the history
The feature of golang having source in a project path with "internal"
makes the code only able to be imported by the project itself.

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 <[email protected]>
  • Loading branch information
vbatts committed Jan 28, 2025
1 parent 42a2f59 commit 1f27f89
Show file tree
Hide file tree
Showing 61 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/tar-split/tar_benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

upTar "archive/tar"

ourTar "github.com/vbatts/tar-split/archive/tar"
ourTar "github.com/vbatts/tar-split/internal/archive/tar"
)

var testfile = "../../archive/tar/testdata/sparse-formats.tar"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
package tar_test

import (
"archive/tar"
"bytes"
"fmt"
"io"
"log"
"os"

"github.com/vbatts/tar-split/internal/archive/tar"
)

func Example_minimal() {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tar/asm/disassemble.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package asm
import (
"io"

"github.com/vbatts/tar-split/archive/tar"
"github.com/vbatts/tar-split/internal/archive/tar"
"github.com/vbatts/tar-split/tar/storage"
)

Expand Down
2 changes: 1 addition & 1 deletion tar/asm/iterate.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"io"

"github.com/vbatts/tar-split/archive/tar"
"github.com/vbatts/tar-split/internal/archive/tar"
"github.com/vbatts/tar-split/tar/storage"
)

Expand Down
2 changes: 1 addition & 1 deletion tar/asm/iterate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/vbatts/tar-split/archive/tar"
"github.com/vbatts/tar-split/internal/archive/tar"
"github.com/vbatts/tar-split/tar/storage"
)

Expand Down

0 comments on commit 1f27f89

Please sign in to comment.