authd-oidc-brokers/go.mod: Don't replace github.com/canonical/authd#1470
authd-oidc-brokers/go.mod: Don't replace github.com/canonical/authd#1470
Conversation
Copilot added this in fc86ba7 and we missed it during the review. It breaks the snap build on Launchpad: :: + go mod download all :: go: github.com/canonical/authd@v0.6.1 (replaced by ../): reading ../go.mod: open /build/authd-oidc/parts/broker/go.mod: no such file or directory
af0321e to
866665b
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1470 +/- ##
=======================================
Coverage 80.48% 80.48%
=======================================
Files 20 20
Lines 1030 1030
=======================================
Hits 829 829
Misses 201 201 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
In #1332, I remember using the https://github.com/canonical/authd/compare/446f564396d37d80e5133dcb04d933d1adc1663a..0513f0e7a743683788f16ea1671d371a2beff8d4, and had altered the Just commenting as a potential fix/workaround (not sure if we would want to do it) |
|
@nooreldeenmansour yeah I'm currently exploring if we want to actually use the authd version from the current repo (I think we do) and how to do that. I have basically the same diff locally as you had on your branch: diff --git a/snap/variants/google/snapcraft.yaml b/snap/variants/google/snapcraft.yaml
index 7968e889b..1eda79aca 100644
--- a/snap/variants/google/snapcraft.yaml
+++ b/snap/variants/google/snapcraft.yaml
@@ -47,7 +47,7 @@ slots:
parts:
broker:
- source: authd-oidc-brokers
+ source: .
source-type: local
plugin: nil
build-snaps:
@@ -55,6 +55,7 @@ parts:
build-environment:
- GOBIN: ${CRAFT_PART_INSTALL}/bin
override-build: |
+ cd authd-oidc-brokers
go mod download all
go mod vendor
VERSION=$(craftctl get version)
diff --git a/snap/variants/msentraid/snapcraft.yaml b/snap/variants/msentraid/snapcraft.yaml
index be58d6028..90521a48d 100644
--- a/snap/variants/msentraid/snapcraft.yaml
+++ b/snap/variants/msentraid/snapcraft.yaml
@@ -66,7 +66,7 @@ parts:
- -include/**
- -lib/**.so
broker:
- source: authd-oidc-brokers
+ source: .
source-type: local
plugin: nil
build-snaps:
@@ -80,6 +80,7 @@ parts:
- CGO_LDFLAGS: -L${CRAFT_STAGE}/lib -lhimmelblau
- GOBIN: ${CRAFT_PART_INSTALL}/bin
override-build: |
+ cd authd-oidc-brokers
go mod download all
go mod vendor
VERSION=$(craftctl get version)
diff --git a/snap/variants/oidc/snapcraft.yaml b/snap/variants/oidc/snapcraft.yaml
index e05dda0f6..febe1cfa9 100644
--- a/snap/variants/oidc/snapcraft.yaml
+++ b/snap/variants/oidc/snapcraft.yaml
@@ -47,7 +47,7 @@ slots:
parts:
broker:
- source: authd-oidc-brokers
+ source: .
source-type: local
plugin: nil
build-snaps:
@@ -55,6 +55,7 @@ parts:
build-environment:
- GOBIN: ${CRAFT_PART_INSTALL}/bin
override-build: |
+ cd authd-oidc-brokers
go mod download all
go mod vendor
VERSION=$(craftctl get version) |
|
@nooreldeenmansour in any case, I think we should merge this first to fix the build issue ASAP and then as a follow-up we can look into actually using the local authd version |
nooreldeenmansour
left a comment
There was a problem hiding this comment.
LGTM.
Quick question though that is likely unrelated; running go mod download all changes both the go.sum file. (When run for both the authd and authd-oidc-brokers package). Should we be commiting these?
It's not really clear to me why |
Copilot added this in fc86ba7 and we missed it during the review. It breaks the snap build on Launchpad: