chore: move the go code into a subfolder

This commit is contained in:
Florian Forster
2025-08-05 15:20:32 -07:00
parent 4ad22ba456
commit cd2921de26
2978 changed files with 373 additions and 300 deletions

View File

@@ -1,47 +0,0 @@
module.exports = {
branches: [
{ name: "next" },
{ name: "next-rc", prerelease: "rc" },
],
plugins: [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/github",
{
draftRelease: true,
successComment: false,
assets: [
{
path: ".artifacts/zitadel-linux-amd64/zitadel-linux-amd64.tar.gz",
label: "zitadel-linux-amd64.tar.gz",
},
{
path: ".artifacts/zitadel-linux-arm64/zitadel-linux-arm64.tar.gz",
label: "zitadel-linux-arm64.tar.gz",
},
{
path: ".artifacts/zitadel-windows-amd64/zitadel-windows-amd64.tar.gz",
label: "zitadel-windows-amd64.tar.gz",
},
{
path: ".artifacts/zitadel-windows-arm64/zitadel-windows-arm64.tar.gz",
label: "zitadel-windows-arm64.tar.gz",
},
{
path: ".artifacts/zitadel-darwin-amd64/zitadel-darwin-amd64.tar.gz",
label: "zitadel-darwin-amd64.tar.gz",
},
{
path: ".artifacts/zitadel-darwin-arm64/zitadel-darwin-arm64.tar.gz",
label: "zitadel-darwin-arm64.tar.gz",
},
{
path: ".artifacts/checksums.txt",
label: "checksums.txt",
}
],
},
],
],
};

105
apps/api/.gitignore vendored Normal file
View File

@@ -0,0 +1,105 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, build with `go test -c`
*.test
!/**/.env.test
# Coverage
coverage.txt
profile.cov
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
#Debug
__debug_bin*
debug
sandbox.go
/cmd/dev/
# IDE
.idea
.vscode
.DS_STORE
.run
# credential
google-credentials
key.json
.keys/*
load-test/.keys
# dumps
.backups
.local/*
.build/
#binaries
cmd/zitadel/zitadel
**/statik/statik.go
/zitadelctl
/zitadel
# buildfolders and generated files
tmp/
console/src/app/proto/generated/
**.pb.go
!pkg/grpc/protoc/v2/options.pb.go
**.proto.mock.go
**.pb.*.go
pkg/**/**.connect.go
**.gen.go
openapi/**/*.json
/internal/api/assets/authz.go
/internal/api/assets/router.go
/internal/api/ui/console/static/*
!/internal/api/ui/console/static/gitkeep
docs/docs/apis/auth
docs/docs/apis/admin
docs/docs/apis/mgmt
docs/docs/apis/system
docs/docs/apis/proto
**/.sass-cache
/internal/api/ui/login/static/resources/themes/zitadel/css/zitadel.css
/internal/api/ui/login/static/resources/themes/zitadel/css/zitadel.css.map
zitadel-*-*
!apps/**/zitadel-*-*
# local
build/local/*.env
.notifications
/.artifacts/*
!/.artifacts/zitadel
/zitadel
node_modules/
.kreya
go.work
go.work.sum
# Local Netlify folder
.netlify
load-test/node_modules
load-test/pnpm-debug.log
load-test/dist
load-test/output/*
.vercel
# Turbo
.turbo/
**/.turbo/
# PNPM
.pnpm-store
.nx/cache
.nx/workspace-data
.cursor/rules/nx-rules.mdc
.github/instructions/nx.instructions.md

View File

@@ -35,7 +35,7 @@ docker_image:
.PHONY: compile_pipeline
compile_pipeline: console_move
CGO_ENABLED=0 go build -o apps/api/zitadel -v -ldflags="-s -w -X 'github.com/zitadel/zitadel/cmd/build.commit=$(COMMIT_SHA)' -X 'github.com/zitadel/zitadel/cmd/build.date=$(now)' -X 'github.com/zitadel/zitadel/cmd/build.version=$(VERSION)' "
CGO_ENABLED=0 go build -o zitadel -v -ldflags="-s -w -X 'github.com/zitadel/zitadel/cmd/build.commit=$(COMMIT_SHA)' -X 'github.com/zitadel/zitadel/cmd/build.date=$(now)' -X 'github.com/zitadel/zitadel/cmd/build.version=$(VERSION)' "
chmod +x zitadel
.PHONY: core_dependencies
@@ -86,7 +86,7 @@ core_grpc_dependencies:
.PHONY: core_api
core_api: core_api_generator core_grpc_dependencies
PATH="$(go_bin):$(PATH)" npx buf generate
PATH="$(go_bin):$(PATH)" npx buf generate ../../proto
mkdir -p pkg/grpc
cp -r .artifacts/grpc/github.com/zitadel/zitadel/pkg/grpc/** pkg/grpc/
mkdir -p openapi/v2/zitadel
@@ -97,7 +97,7 @@ core_build: core_dependencies core_api core_static core_assets
.PHONY: console_move
console_move:
cp -r apps/console/dist/console/* internal/api/ui/console/static
cp -r ../console/dist/console/* internal/api/ui/console/static
.PHONY: clean
clean:

Some files were not shown because too many files have changed in this diff Show More