Skip to content

Commit 88fd4c0

Browse files
authored
Merge pull request #67 from mjudeikis/internal.to.pkg
Rename internal to pkg
2 parents 49e4c7c + 4c8214d commit 88fd4c0

File tree

18 files changed

+14
-14
lines changed

18 files changed

+14
-14
lines changed

.golangci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ linters:
161161
path: _test\.go
162162
- linters:
163163
- revive
164-
path: .*/internal/.*
164+
path: .*/pkg/.*
165165
# Seems to incorrectly trigger on the two implementations that are only
166166
# used through an interface and not directly..?
167167
# Likely same issue as https://github.com/dominikh/go-tools/issues/1616

apiexport/provider.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ import (
4242

4343
apisv1alpha1 "github.com/kcp-dev/sdk/apis/apis/v1alpha1"
4444

45-
"github.com/kcp-dev/multicluster-provider/internal/handlers"
46-
"github.com/kcp-dev/multicluster-provider/internal/provider"
45+
"github.com/kcp-dev/multicluster-provider/pkg/handlers"
46+
"github.com/kcp-dev/multicluster-provider/pkg/provider"
4747
)
4848

4949
var _ multicluster.Provider = &Provider{}

hack/verify-boilerplate.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ echo "Checking file boilerplates…"
2626
"$BOILERPLATE" \
2727
-boilerplates hack/boilerplate \
2828
-exclude .github \
29-
-exclude internal/cache/forked_cache_reader.go \
30-
-exclude internal/events/recorder/forked_recorder.go \
29+
-exclude pkg/cache/forked_cache_reader.go \
30+
-exclude pkg/events/recorder/forked_recorder.go \
3131
-exclude envtest \
3232
-exclude hack/uget.sh
3333

@@ -38,8 +38,8 @@ echo "Checking file boilerplates…"
3838
-exclude envtest/scheme.go \
3939
-exclude envtest/testing.go \
4040
-exclude envtest/workspaces.go \
41-
internal/cache/forked_cache_reader.go \
42-
internal/events/recorder/forked_recorder.go
41+
pkg/cache/forked_cache_reader.go \
42+
pkg/events/recorder/forked_recorder.go
4343

4444
"$BOILERPLATE" \
4545
-boilerplates hack/boilerplate \

initializingworkspaces/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import (
4141
"github.com/kcp-dev/logicalcluster/v3"
4242
kcpcorev1alpha1 "github.com/kcp-dev/sdk/apis/core/v1alpha1"
4343

44-
mcpcache "github.com/kcp-dev/multicluster-provider/internal/cache"
44+
mcpcache "github.com/kcp-dev/multicluster-provider/pkg/cache"
4545
)
4646

4747
var _ multicluster.Provider = &Provider{}

path-aware/provider.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ import (
2929
kcpcore "github.com/kcp-dev/sdk/apis/core"
3030

3131
provider "github.com/kcp-dev/multicluster-provider/apiexport"
32-
"github.com/kcp-dev/multicluster-provider/internal/handlers"
33-
"github.com/kcp-dev/multicluster-provider/internal/paths"
32+
"github.com/kcp-dev/multicluster-provider/pkg/handlers"
33+
"github.com/kcp-dev/multicluster-provider/pkg/paths"
3434
)
3535

3636
var _ multicluster.Provider = &Provider{}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333

3434
"github.com/kcp-dev/logicalcluster/v3"
3535

36-
mcrecorder "github.com/kcp-dev/multicluster-provider/internal/events/recorder"
36+
mcrecorder "github.com/kcp-dev/multicluster-provider/pkg/events/recorder"
3737
)
3838

3939
// NewScopedCluster constructs a new cluster.Cluster that operates on a specific logical cluster.

0 commit comments

Comments
 (0)