summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-05-23 17:00:07 -0600
committermo khan <mo@mokhan.ca>2025-05-23 17:00:07 -0600
commitaebf1323e4705e517e9dd2dbf4efab6f39c63f86 (patch)
treea681b62f5693b5012a332af0f6ee90653158a0a8
parent3335636fe9aa21b330b68c4876d93c1439dc9965 (diff)
chore: append .git to module name
Apply workaround described in: https://docs.gitlab.com/user/project/use_project_as_go_package/#workaround-use-git-in-the-module-name
-rw-r--r--app/app.go4
-rw-r--r--app/app_test.go2
-rw-r--r--app/services/ability.go6
-rw-r--r--cmd/authzd/main.go2
-rw-r--r--go.mod2
-rw-r--r--pkg/policies/allowed_test.go2
6 files changed, 9 insertions, 9 deletions
diff --git a/app/app.go b/app/app.go
index 0f2068df..f79b67b1 100644
--- a/app/app.go
+++ b/app/app.go
@@ -6,8 +6,8 @@ import (
"github.com/rs/zerolog"
"github.com/xlgmokha/x/pkg/ioc"
"github.com/xlgmokha/x/pkg/log"
- "gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd/app/services"
- "gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd/pkg/rpc"
+ "gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd.git/app/services"
+ "gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd.git/pkg/rpc"
)
func New() http.Handler {
diff --git a/app/app_test.go b/app/app_test.go
index f3168bd5..fcdee36c 100644
--- a/app/app_test.go
+++ b/app/app_test.go
@@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- "gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd/pkg/rpc"
+ "gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd.git/pkg/rpc"
)
func TestApp(t *testing.T) {
diff --git a/app/services/ability.go b/app/services/ability.go
index 1d094b01..f0379513 100644
--- a/app/services/ability.go
+++ b/app/services/ability.go
@@ -4,9 +4,9 @@ import (
context "context"
"github.com/cedar-policy/cedar-go"
- "gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd/pkg/gid"
- "gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd/pkg/policies"
- "gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd/pkg/rpc"
+ "gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd.git/pkg/gid"
+ "gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd.git/pkg/policies"
+ "gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd.git/pkg/rpc"
)
type AbilityService struct {
diff --git a/cmd/authzd/main.go b/cmd/authzd/main.go
index 8d31cbac..05b0b148 100644
--- a/cmd/authzd/main.go
+++ b/cmd/authzd/main.go
@@ -6,7 +6,7 @@ import (
"net/http"
"github.com/xlgmokha/x/pkg/env"
- "gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd/app"
+ "gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd.git/app"
)
func main() {
diff --git a/go.mod b/go.mod
index a93ec47e..1d561262 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd
+module gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd.git
go 1.24
diff --git a/pkg/policies/allowed_test.go b/pkg/policies/allowed_test.go
index 8c60f7f3..367bd99f 100644
--- a/pkg/policies/allowed_test.go
+++ b/pkg/policies/allowed_test.go
@@ -6,7 +6,7 @@ import (
"github.com/cedar-policy/cedar-go"
"github.com/stretchr/testify/assert"
- "gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd/pkg/gid"
+ "gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd.git/pkg/gid"
)
func build(f func(*cedar.Request)) *cedar.Request {