update: 2025.12.1 -> 2025.12.3
Closes #90 ChangeLogs: * https://github.com/goauthentik/authentik/releases/tag/version%2F2025.12.2 * https://github.com/goauthentik/authentik/releases/tag/version%2F2025.12.3 Using the `client-go` library that is vendored in this release's `go.mod` breaks all outposts for me, so we're now doing what upstream is also doing, i.e. generating the Go client code ourselves.
This commit is contained in:
parent
eee255ff2f
commit
9eed4f7e7e
5 changed files with 68 additions and 18 deletions
|
|
@ -8,10 +8,12 @@
|
|||
guacamole-server,
|
||||
stdenv,
|
||||
patches,
|
||||
generatedGoClient,
|
||||
}:
|
||||
|
||||
let
|
||||
guacamoleAvailable = lib.meta.availableOn stdenv.hostPlatform guacamole-server;
|
||||
|
||||
in
|
||||
buildGo125Module {
|
||||
pname = "authentik-gopkgs";
|
||||
|
|
@ -21,6 +23,9 @@ buildGo125Module {
|
|||
sed -i"" -e 's,./web/dist/,${authentikComponents.frontend}/dist/,' web/static.go
|
||||
sed -i"" -e 's,./web/dist/,${authentikComponents.frontend}/dist/,' internal/web/static.go
|
||||
sed -i"" -e 's,./lifecycle/gunicorn.conf.py,${authentikComponents.staticWorkdirDeps}/lifecycle/gunicorn.conf.py,' internal/gounicorn/gounicorn.go
|
||||
cp --no-preserve=mode -vr ${generatedGoClient} gen-go-api
|
||||
echo "replace goauthentik.io/api/v3 => ./gen-go-api" >>go.mod
|
||||
go mod edit -require=goauthentik.io/api/v3@v3.0.0
|
||||
'' + lib.optionalString guacamoleAvailable ''
|
||||
substituteInPlace internal/outpost/rac/guacd.go \
|
||||
--replace-fail '/opt/guacamole/sbin/guacd' \
|
||||
|
|
@ -43,6 +48,7 @@ buildGo125Module {
|
|||
"/web/security.txt"
|
||||
"go.mod"
|
||||
"go.sum"
|
||||
"schema.yml"
|
||||
])
|
||||
))
|
||||
);
|
||||
|
|
@ -63,7 +69,7 @@ buildGo125Module {
|
|||
] ++ lib.optionals guacamoleAvailable [
|
||||
"cmd/rac"
|
||||
];
|
||||
vendorHash = "sha256-u/kAqDCeWHPaw/0+lQ9U6/pHSgdANOeflQLVgUV64Vs=";
|
||||
vendorHash = "sha256-meqQHr5U0/6nc8fv1b4SFo2ohFcwSeAmSB1eLKsO9nc=";
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
doCheck = false;
|
||||
postInstall = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue