Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
21 changes: 11 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@ on:
branches:
- master
pull_request:

jobs:
unittest:
name: Unit Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: '>=1.22.0'
- name: Install dependencies
run: sudo apt-get install libdb-dev libbtrfs-dev pkg-config libdevmapper-dev
- name: Run unit tests
run: go test ./...
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: '>=1.22.0'
- name: Install dependencies
run: sudo apt-get install libdb-dev libbtrfs-dev pkg-config libdevmapper-dev
- name: Run unit tests
run: go test ./...
6 changes: 3 additions & 3 deletions analyzer/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
digest "github.com/opencontainers/go-digest"
"golang.org/x/xerrors"

"github.com/goodwithtech/deckoder/extractor"
"github.com/goodwithtech/deckoder/extractor/docker"
"github.com/goodwithtech/deckoder/types"
"github.com/SpazioDati/deckoder/extractor"
"github.com/SpazioDati/deckoder/extractor/docker"
"github.com/SpazioDati/deckoder/types"
)

var (
Expand Down
10 changes: 5 additions & 5 deletions cmd/deckoder/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"log"
"time"

"github.com/goodwithtech/deckoder/analyzer"
"github.com/goodwithtech/deckoder/extractor"
"github.com/goodwithtech/deckoder/extractor/docker"
"github.com/goodwithtech/deckoder/types"
"github.com/goodwithtech/deckoder/utils"
"github.com/SpazioDati/deckoder/analyzer"
"github.com/SpazioDati/deckoder/extractor"
"github.com/SpazioDati/deckoder/extractor/docker"
"github.com/SpazioDati/deckoder/types"
"github.com/SpazioDati/deckoder/utils"
)

func main() {
Expand Down
8 changes: 4 additions & 4 deletions extractor/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import (
digest "github.com/opencontainers/go-digest"
"golang.org/x/xerrors"

"github.com/goodwithtech/deckoder/extractor/image/token/ecr"
"github.com/goodwithtech/deckoder/extractor/image/token/gcr"
"github.com/SpazioDati/deckoder/extractor/image/token/ecr"
"github.com/SpazioDati/deckoder/extractor/image/token/gcr"

"github.com/knqyf263/nested"

"github.com/goodwithtech/deckoder/extractor/image"
"github.com/goodwithtech/deckoder/types"
"github.com/SpazioDati/deckoder/extractor/image"
"github.com/SpazioDati/deckoder/types"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions extractor/docker/docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (

"github.com/stretchr/testify/require"

"github.com/goodwithtech/deckoder/extractor/image"
"github.com/goodwithtech/deckoder/types"
"github.com/goodwithtech/deckoder/utils"
"github.com/SpazioDati/deckoder/extractor/image"
"github.com/SpazioDati/deckoder/types"
"github.com/SpazioDati/deckoder/utils"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion extractor/extractor.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

digest "github.com/opencontainers/go-digest"

"github.com/goodwithtech/deckoder/types"
"github.com/SpazioDati/deckoder/types"
)

type Extractor interface {
Expand Down
2 changes: 1 addition & 1 deletion extractor/image/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
digest "github.com/opencontainers/go-digest"
"golang.org/x/xerrors"

"github.com/goodwithtech/deckoder/types"
"github.com/SpazioDati/deckoder/types"
)

type ImageSource interface {
Expand Down
2 changes: 1 addition & 1 deletion extractor/image/image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"testing"

"github.com/goodwithtech/deckoder/types"
"github.com/SpazioDati/deckoder/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion extractor/image/mock_registry.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion extractor/image/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"github.com/containers/image/v5/pkg/docker/config"
imageTypes "github.com/containers/image/v5/types"
"github.com/goodwithtech/deckoder/types"
"github.com/SpazioDati/deckoder/types"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion extractor/image/token/ecr/ecr.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/base64"
"strings"

"github.com/goodwithtech/deckoder/types"
"github.com/SpazioDati/deckoder/types"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
Expand Down
2 changes: 1 addition & 1 deletion extractor/image/token/ecr/ecr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/goodwithtech/deckoder/types"
"github.com/SpazioDati/deckoder/types"
"golang.org/x/xerrors"

"github.com/aws/aws-sdk-go/aws/request"
Expand Down
2 changes: 1 addition & 1 deletion extractor/image/token/gcr/gcr.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"strings"

"github.com/goodwithtech/deckoder/types"
"github.com/SpazioDati/deckoder/types"

"golang.org/x/xerrors"

Expand Down
2 changes: 1 addition & 1 deletion extractor/image/token/gcr/gcr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"golang.org/x/xerrors"

"github.com/goodwithtech/deckoder/types"
"github.com/SpazioDati/deckoder/types"
)

func TestCheckOptions(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion extractor/image/token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"

imageTypes "github.com/containers/image/v5/types"
"github.com/goodwithtech/deckoder/types"
"github.com/SpazioDati/deckoder/types"
"github.com/stretchr/testify/assert"
)

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/goodwithtech/deckoder
module github.com/SpazioDati/deckoder

go 1.22.7

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

"github.com/goodwithtech/deckoder/types"
"github.com/SpazioDati/deckoder/types"
)

var (
Expand Down