Skip to content

Expose Go API functions for loading library registry data files #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 15, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use true module path
The previous module path `arduino.cc/repository` only served as an arbitrary identifier, but did not have the expected support for `go get`/`go install`:

```
$ go get arduino.cc/repository
go get arduino.cc/repository: unrecognized import path "arduino.cc/repository": reading https://arduino.cc/repository?go-get=1: 404 Not Found
```
  • Loading branch information
per1234 committed Jul 15, 2021
commit 121df84fc9c7e385ca190d29f8e73b03ced06d9f
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module arduino.cc/repository
module github.com/arduino/libraries-repository-engine

go 1.14

Expand Down
2 changes: 1 addition & 1 deletion internal/libraries/db/library.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"regexp"
"strings"

"arduino.cc/repository/internal/libraries/metadata"
"github.com/arduino/libraries-repository-engine/internal/libraries/metadata"
)

// FromLibraryToRelease extract a Release from LibraryMetadata. LibraryMetadata must be
Expand Down
4 changes: 2 additions & 2 deletions internal/libraries/git_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (
"path/filepath"
"testing"

"arduino.cc/repository/internal/libraries/db"
"arduino.cc/repository/internal/libraries/gitutils"
"github.com/arduino/libraries-repository-engine/internal/libraries/db"
"github.com/arduino/libraries-repository-engine/internal/libraries/gitutils"
"github.com/stretchr/testify/require"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/libraries/repoarchive.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import (
"path/filepath"
"regexp"

"arduino.cc/repository/internal/libraries/metadata"
"arduino.cc/repository/internal/libraries/zip"
"github.com/arduino/libraries-repository-engine/internal/libraries/metadata"
"github.com/arduino/libraries-repository-engine/internal/libraries/zip"
)

// ZipRepo creates a ZIP archive of the repo folder and returns its path.
Expand Down
4 changes: 2 additions & 2 deletions internal/libraries/repoclone.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ import (
"os"
"path/filepath"

"arduino.cc/repository/internal/libraries/db"
"github.com/arduino/libraries-repository-engine/internal/libraries/db"

"fmt"

"arduino.cc/repository/internal/libraries/metadata"
"github.com/arduino/libraries-repository-engine/internal/libraries/metadata"
"github.com/go-git/go-git/v5"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/libraries/zip/ziphelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"os/exec"
"path/filepath"

"arduino.cc/repository/internal/libraries/file"
"github.com/arduino/libraries-repository-engine/internal/libraries/file"
)

// Directory creates a new zip archive that contains a copy of "rootFolder" into "zipFile".
Expand Down
2 changes: 1 addition & 1 deletion libraries/repolist.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
package libraries

import (
"arduino.cc/repository/internal/libraries"
"github.com/arduino/libraries-repository-engine/internal/libraries"
)

// LoadRepoListFromFile returns an unfiltered list of library registry entries loaded from the given data file.
Expand Down
2 changes: 1 addition & 1 deletion libraries/repolist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ package libraries
import (
"testing"

"arduino.cc/repository/internal/libraries"
"github.com/arduino/libraries-repository-engine/internal/libraries"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
8 changes: 4 additions & 4 deletions sync_libraries.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ import (
"os"
"path/filepath"

"arduino.cc/repository/internal/libraries"
"arduino.cc/repository/internal/libraries/db"
"arduino.cc/repository/internal/libraries/gitutils"
"arduino.cc/repository/internal/libraries/hash"
cc "github.com/arduino/golang-concurrent-workers"
"github.com/arduino/libraries-repository-engine/internal/libraries"
"github.com/arduino/libraries-repository-engine/internal/libraries/db"
"github.com/arduino/libraries-repository-engine/internal/libraries/gitutils"
"github.com/arduino/libraries-repository-engine/internal/libraries/hash"
"github.com/go-git/go-git/v5/plumbing"
)

Expand Down