Skip to content

Commit

Permalink
Move from rdimitov/go-tuf-metadata to github.com/theupdateframework/g…
Browse files Browse the repository at this point in the history
…o-tuf/v2

Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>
  • Loading branch information
rdimitrov committed Jan 29, 2024
1 parent c83e2db commit 4e440e2
Show file tree
Hide file tree
Showing 24 changed files with 44 additions and 44 deletions.
6 changes: 3 additions & 3 deletions examples/cli/tuf-client/cmd/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import (
"path/filepath"

"github.com/go-logr/stdr"
"github.com/rdimitrov/go-tuf-metadata/metadata"
"github.com/rdimitrov/go-tuf-metadata/metadata/config"
"github.com/rdimitrov/go-tuf-metadata/metadata/updater"
"github.com/spf13/cobra"
"github.com/theupdateframework/go-tuf/v2/metadata"
"github.com/theupdateframework/go-tuf/v2/metadata/config"
"github.com/theupdateframework/go-tuf/v2/metadata/updater"
)

var targetsURL string
Expand Down
4 changes: 2 additions & 2 deletions examples/cli/tuf-client/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
"path/filepath"

"github.com/go-logr/stdr"
"github.com/rdimitrov/go-tuf-metadata/metadata"
"github.com/rdimitrov/go-tuf-metadata/metadata/trustedmetadata"
"github.com/spf13/cobra"
"github.com/theupdateframework/go-tuf/v2/metadata"
"github.com/theupdateframework/go-tuf/v2/metadata/trustedmetadata"
)

var rootPath string
Expand Down
2 changes: 1 addition & 1 deletion examples/cli/tuf-client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
package main

import (
tufclient "github.com/rdimitrov/go-tuf-metadata/examples/cli/tuf-client/cmd"
tufclient "github.com/theupdateframework/go-tuf/v2/examples/cli/tuf-client/cmd"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/cli/tuf/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
"os"

"github.com/go-logr/stdr"
"github.com/rdimitrov/go-tuf-metadata/metadata"
"github.com/spf13/cobra"
"github.com/theupdateframework/go-tuf/v2/metadata"
)

var initCmd = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion examples/cli/tuf/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"fmt"
"os"

tuf "github.com/rdimitrov/go-tuf-metadata/examples/cli/tuf/cmd"
tuf "github.com/theupdateframework/go-tuf/v2/examples/cli/tuf/cmd"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions examples/client/client_example.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (

"github.com/go-logr/stdr"

"github.com/rdimitrov/go-tuf-metadata/metadata"
"github.com/rdimitrov/go-tuf-metadata/metadata/config"
"github.com/rdimitrov/go-tuf-metadata/metadata/updater"
"github.com/theupdateframework/go-tuf/v2/metadata"
"github.com/theupdateframework/go-tuf/v2/metadata/config"
"github.com/theupdateframework/go-tuf/v2/metadata/updater"
)

// The following config is used to fetch a target from Jussi's GitHub repository example
Expand Down
8 changes: 4 additions & 4 deletions examples/multirepo/client/client_example.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (

"github.com/go-logr/stdr"

"github.com/rdimitrov/go-tuf-metadata/metadata"
"github.com/rdimitrov/go-tuf-metadata/metadata/config"
"github.com/rdimitrov/go-tuf-metadata/metadata/multirepo"
"github.com/rdimitrov/go-tuf-metadata/metadata/updater"
"github.com/theupdateframework/go-tuf/v2/metadata"
"github.com/theupdateframework/go-tuf/v2/metadata/config"
"github.com/theupdateframework/go-tuf/v2/metadata/multirepo"
"github.com/theupdateframework/go-tuf/v2/metadata/updater"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions examples/multirepo/repository/generate_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import (
"strings"
"time"

"github.com/rdimitrov/go-tuf-metadata/metadata"
"github.com/rdimitrov/go-tuf-metadata/metadata/repository"
"github.com/sigstore/sigstore/pkg/signature"
"github.com/theupdateframework/go-tuf/v2/metadata"
"github.com/theupdateframework/go-tuf/v2/metadata/repository"
"golang.org/x/crypto/ed25519"
)

Expand Down
4 changes: 2 additions & 2 deletions examples/repository/basic_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"path/filepath"
"time"

"github.com/rdimitrov/go-tuf-metadata/metadata"
"github.com/rdimitrov/go-tuf-metadata/metadata/repository"
"github.com/sigstore/sigstore/pkg/signature"
"github.com/theupdateframework/go-tuf/v2/metadata"
"github.com/theupdateframework/go-tuf/v2/metadata/repository"
"golang.org/x/crypto/ed25519"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/rdimitrov/go-tuf-metadata
module github.com/theupdateframework/go-tuf/v2

go 1.21.5

Expand Down
2 changes: 1 addition & 1 deletion metadata/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"net/url"
"os"

"github.com/rdimitrov/go-tuf-metadata/metadata/fetcher"
"github.com/theupdateframework/go-tuf/v2/metadata/fetcher"
)

type UpdaterConfig struct {
Expand Down
2 changes: 1 addition & 1 deletion metadata/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
"path/filepath"
"testing"

"github.com/rdimitrov/go-tuf-metadata/metadata/fetcher"
"github.com/stretchr/testify/assert"
"github.com/theupdateframework/go-tuf/v2/metadata/fetcher"
)

func TestNewUpdaterConfig(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion metadata/fetcher/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"strconv"
"time"

"github.com/rdimitrov/go-tuf-metadata/metadata"
"github.com/theupdateframework/go-tuf/v2/metadata"
)

// Fetcher interface
Expand Down
2 changes: 1 addition & 1 deletion metadata/fetcher/fetcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"testing"
"time"

"github.com/rdimitrov/go-tuf-metadata/metadata"
"github.com/stretchr/testify/assert"
"github.com/theupdateframework/go-tuf/v2/metadata"
)

func TestDownLoadFile(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion metadata/metadata_api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import (
"testing"
"time"

testutils "github.com/rdimitrov/go-tuf-metadata/testutils/testutils"
"github.com/sigstore/sigstore/pkg/cryptoutils"
"github.com/sigstore/sigstore/pkg/signature"
"github.com/stretchr/testify/assert"
"github.com/theupdateframework/go-tuf/v2/testutils/testutils"
"golang.org/x/sys/unix"
)

Expand Down
6 changes: 3 additions & 3 deletions metadata/multirepo/multirepo.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (
"os"
"path/filepath"

"github.com/rdimitrov/go-tuf-metadata/metadata"
"github.com/rdimitrov/go-tuf-metadata/metadata/config"
"github.com/rdimitrov/go-tuf-metadata/metadata/updater"
"github.com/theupdateframework/go-tuf/v2/metadata"
"github.com/theupdateframework/go-tuf/v2/metadata/config"
"github.com/theupdateframework/go-tuf/v2/metadata/updater"
"golang.org/x/exp/slices"
)

Expand Down
2 changes: 1 addition & 1 deletion metadata/repository/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
package repository

import (
"github.com/rdimitrov/go-tuf-metadata/metadata"
"github.com/theupdateframework/go-tuf/v2/metadata"
)

// repositoryType struct for storing metadata
Expand Down
2 changes: 1 addition & 1 deletion metadata/repository/repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"testing"
"time"

"github.com/rdimitrov/go-tuf-metadata/metadata"
"github.com/stretchr/testify/assert"
"github.com/theupdateframework/go-tuf/v2/metadata"
)

func TestNewRepository(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion metadata/trustedmetadata/trustedmetadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"fmt"
"time"

"github.com/rdimitrov/go-tuf-metadata/metadata"
"github.com/theupdateframework/go-tuf/v2/metadata"
)

// TrustedMetadata struct for storing trusted metadata
Expand Down
4 changes: 2 additions & 2 deletions metadata/trustedmetadata/trustedmetadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ import (
"testing"
"time"

"github.com/rdimitrov/go-tuf-metadata/metadata"
"github.com/rdimitrov/go-tuf-metadata/testutils/testutils"
"github.com/sigstore/sigstore/pkg/cryptoutils"
"github.com/sigstore/sigstore/pkg/signature"
"github.com/stretchr/testify/assert"
"github.com/theupdateframework/go-tuf/v2/metadata"
"github.com/theupdateframework/go-tuf/v2/testutils/testutils"
"golang.org/x/exp/maps"
)

Expand Down
6 changes: 3 additions & 3 deletions metadata/updater/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import (
"strings"
"time"

"github.com/rdimitrov/go-tuf-metadata/metadata"
"github.com/rdimitrov/go-tuf-metadata/metadata/config"
"github.com/rdimitrov/go-tuf-metadata/metadata/trustedmetadata"
"github.com/theupdateframework/go-tuf/v2/metadata"
"github.com/theupdateframework/go-tuf/v2/metadata/config"
"github.com/theupdateframework/go-tuf/v2/metadata/trustedmetadata"
)

// Client update workflow implementation
Expand Down
4 changes: 2 additions & 2 deletions metadata/updater/updater_consistent_snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (

"github.com/stretchr/testify/assert"

"github.com/rdimitrov/go-tuf-metadata/metadata"
simulator "github.com/rdimitrov/go-tuf-metadata/testutils/simulator"
"github.com/theupdateframework/go-tuf/v2/metadata"
"github.com/theupdateframework/go-tuf/v2/testutils/simulator"
)

func TestTopLevelRolesUpdateWithConsistentSnapshotDisabled(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions metadata/updater/updater_top_level_update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import (
log "github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"

"github.com/rdimitrov/go-tuf-metadata/metadata"
"github.com/rdimitrov/go-tuf-metadata/metadata/config"
simulator "github.com/rdimitrov/go-tuf-metadata/testutils/simulator"
testutils "github.com/rdimitrov/go-tuf-metadata/testutils/testutils"
"github.com/theupdateframework/go-tuf/v2/metadata"
"github.com/theupdateframework/go-tuf/v2/metadata/config"
"github.com/theupdateframework/go-tuf/v2/testutils/simulator"
"github.com/theupdateframework/go-tuf/v2/testutils/testutils"
)

func TestMain(m *testing.M) {
Expand Down
4 changes: 2 additions & 2 deletions testutils/simulator/repository_simulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ import (
"strings"
"time"

"github.com/rdimitrov/go-tuf-metadata/metadata"
"github.com/rdimitrov/go-tuf-metadata/metadata/fetcher"
"github.com/sigstore/sigstore/pkg/signature"
log "github.com/sirupsen/logrus"
"github.com/theupdateframework/go-tuf/v2/metadata"
"github.com/theupdateframework/go-tuf/v2/metadata/fetcher"
)

var SPEC_VER = "." + metadata.SPECIFICATION_VERSION
Expand Down

0 comments on commit 4e440e2

Please sign in to comment.