From 68ebb5d6ad4a85387649c7d89f95932e46bb2abe Mon Sep 17 00:00:00 2001 From: Arseny Kravchenko Date: Fri, 28 Nov 2025 18:40:59 +0100 Subject: [PATCH] Add AGENTS.md symlink and enable symlink embedding - Create AGENTS.md as symlink to CLAUDE.md in appkit template - Add GODEBUG=embedfollowsymlinks=1 to build targets - Update goreleaser configs to support symlink embedding --- .goreleaser-unix.yaml | 1 + .goreleaser-windows.yaml | 1 + .goreleaser.yaml | 1 + Makefile | 6 +++--- experimental/apps-mcp/lib/templates/appkit/AGENTS.md | 1 + 5 files changed, 7 insertions(+), 3 deletions(-) create mode 120000 experimental/apps-mcp/lib/templates/appkit/AGENTS.md diff --git a/.goreleaser-unix.yaml b/.goreleaser-unix.yaml index 398d310c38..f8127fa683 100644 --- a/.goreleaser-unix.yaml +++ b/.goreleaser-unix.yaml @@ -7,6 +7,7 @@ before: builds: - env: - CGO_ENABLED=0 + - GODEBUG=embedfollowsymlinks=1 mod_timestamp: '{{ .CommitTimestamp }}' flags: - -trimpath diff --git a/.goreleaser-windows.yaml b/.goreleaser-windows.yaml index d8d2fc80f8..3f80d6b964 100644 --- a/.goreleaser-windows.yaml +++ b/.goreleaser-windows.yaml @@ -8,6 +8,7 @@ builds: - id: cli env: - CGO_ENABLED=0 + - GODEBUG=embedfollowsymlinks=1 mod_timestamp: '{{ .CommitTimestamp }}' flags: - -trimpath diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 8471d8410f..d6eb8d7b84 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -7,6 +7,7 @@ before: builds: - env: - CGO_ENABLED=0 + - GODEBUG=embedfollowsymlinks=1 mod_timestamp: '{{ .CommitTimestamp }}' flags: - -trimpath diff --git a/Makefile b/Makefile index bb976362a2..fd88647404 100644 --- a/Makefile +++ b/Makefile @@ -95,14 +95,14 @@ acc-showcover: go tool cover -html=coverage-acceptance.txt build: tidy - go build + GODEBUG=embedfollowsymlinks=1 go build # builds the binary in a VM environment (such as Parallels Desktop) where your files are mirrored from the host os build-vm: tidy - go build -buildvcs=false + GODEBUG=embedfollowsymlinks=1 go build -buildvcs=false snapshot: - go build -o .databricks/databricks + GODEBUG=embedfollowsymlinks=1 go build -o .databricks/databricks # Produce release binaries and archives in the dist folder without uploading them anywhere. # Useful for "databricks ssh" development, as it needs to upload linux releases to the /Workspace. diff --git a/experimental/apps-mcp/lib/templates/appkit/AGENTS.md b/experimental/apps-mcp/lib/templates/appkit/AGENTS.md new file mode 120000 index 0000000000..681311eb9c --- /dev/null +++ b/experimental/apps-mcp/lib/templates/appkit/AGENTS.md @@ -0,0 +1 @@ +CLAUDE.md \ No newline at end of file