Skip to content

Commit 2f36165

Browse files
committed
Rename "types" packages to avoid "meaningless name" warnings
These are internal and test packages, so this shouldn't break any of our API consumers. Signed-off-by: Nalin Dahyabhai <[email protected]>
1 parent 2e2bf30 commit 2f36165

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

chroot/run_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"strings"
1515
"testing"
1616

17-
"github.com/containers/buildah/tests/testreport/types"
17+
types "github.com/containers/buildah/tests/testreport/types"
1818
"github.com/containers/buildah/util"
1919
specs "github.com/opencontainers/runtime-spec/specs-go"
2020
"github.com/opencontainers/runtime-tools/generate"

internal/mkcw/attest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"path/filepath"
1515
"strings"
1616

17-
"github.com/containers/buildah/internal/mkcw/types"
17+
types "github.com/containers/buildah/internal/mkcw/types"
1818
"github.com/sirupsen/logrus"
1919
"go.podman.io/storage/pkg/fileutils"
2020
)

internal/mkcw/types/attest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package types
1+
package mkcwtypes
22

33
// RegistrationRequest is the body of the request which we use for registering
44
// this confidential workload with the attestation server.

internal/mkcw/types/workload.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package types
1+
package mkcwtypes
22

33
import "github.com/containers/buildah/define"
44

internal/mkcw/workload.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"os"
1111

1212
"github.com/containers/buildah/define"
13-
"github.com/containers/buildah/internal/mkcw/types"
13+
types "github.com/containers/buildah/internal/mkcw/types"
1414
)
1515

1616
type (

internal/util/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package util
1+
package internalutil
22

33
import (
44
"fmt"

internal/util/util_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package util
1+
package internalutil
22

33
import (
44
"testing"

tests/testreport/testreport.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"strings"
1212
"syscall"
1313

14-
"github.com/containers/buildah/tests/testreport/types"
14+
types "github.com/containers/buildah/tests/testreport/types"
1515
"github.com/moby/sys/capability"
1616
"github.com/opencontainers/runtime-spec/specs-go"
1717
"github.com/sirupsen/logrus"

tests/testreport/types/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package types
1+
package testreporttypes
22

33
import (
44
"github.com/opencontainers/runtime-spec/specs-go"

0 commit comments

Comments
 (0)