Skip to content

Commit ba5982b

Browse files
committed
Make all packages internal
The Go packages of this project were written solely for the use within the project. Making them internal avoids them unintentionally becoming part of the public API, which would result in a greatly increased potential maintenance and support burden and limitations on further development work. It would be interesting to eventually evaluate whether any components of the internal API might be useful to others and expose them intentionally as they reach a state of relative stability. However, for now the public API should be considered to be the: - Configuration file format - Index source list format - Library Manager index format
1 parent 96288c2 commit ba5982b

Some content is hidden

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

63 files changed

+12
-12
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

libraries/db/library.go renamed to internal/libraries/db/library.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"regexp"
2929
"strings"
3030

31-
"arduino.cc/repository/libraries/metadata"
31+
"arduino.cc/repository/internal/libraries/metadata"
3232
)
3333

3434
// FromLibraryToRelease extract a Release from LibraryMetadata. LibraryMetadata must be
File renamed without changes.
File renamed without changes.

libraries/git_integration_test.go renamed to internal/libraries/git_integration_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ import (
2929
"path/filepath"
3030
"testing"
3131

32-
"arduino.cc/repository/libraries/db"
33-
"arduino.cc/repository/libraries/gitutils"
32+
"arduino.cc/repository/internal/libraries/db"
33+
"arduino.cc/repository/internal/libraries/gitutils"
3434
"github.com/go-git/go-git/v5"
3535
"github.com/stretchr/testify/require"
3636
)
File renamed without changes.
File renamed without changes.

libraries/repoarchive.go renamed to internal/libraries/repoarchive.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import (
2828
"path/filepath"
2929
"regexp"
3030

31-
"arduino.cc/repository/libraries/metadata"
32-
"arduino.cc/repository/libraries/zip"
31+
"arduino.cc/repository/internal/libraries/metadata"
32+
"arduino.cc/repository/internal/libraries/zip"
3333
)
3434

3535
// ZipRepo creates a ZIP archive of the repo folder and returns its path.

libraries/repoclone.go renamed to internal/libraries/repoclone.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ import (
2828
"os"
2929
"path/filepath"
3030

31-
"arduino.cc/repository/libraries/db"
31+
"arduino.cc/repository/internal/libraries/db"
3232

3333
"fmt"
3434

35-
"arduino.cc/repository/libraries/metadata"
35+
"arduino.cc/repository/internal/libraries/metadata"
3636
"github.com/go-git/go-git/v5"
3737
)
3838

File renamed without changes.
File renamed without changes.
File renamed without changes.

libraries/zip/ziphelper.go renamed to internal/libraries/zip/ziphelper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
"os/exec"
3131
"path/filepath"
3232

33-
"arduino.cc/repository/libraries/file"
33+
"arduino.cc/repository/internal/libraries/file"
3434
)
3535

3636
// Directory creates a new zip archive that contains a copy of "rootFolder" into "zipFile".

sync_libraries.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ import (
3232
"os"
3333
"path/filepath"
3434

35-
"arduino.cc/repository/libraries"
36-
"arduino.cc/repository/libraries/db"
37-
"arduino.cc/repository/libraries/gitutils"
38-
"arduino.cc/repository/libraries/hash"
35+
"arduino.cc/repository/internal/libraries"
36+
"arduino.cc/repository/internal/libraries/db"
37+
"arduino.cc/repository/internal/libraries/gitutils"
38+
"arduino.cc/repository/internal/libraries/hash"
3939
cc "github.com/arduino/golang-concurrent-workers"
4040
"github.com/go-git/go-git/v5"
4141
"github.com/go-git/go-git/v5/plumbing"

0 commit comments

Comments
 (0)