Skip to content

chore: move antd port file to ant/sdk subdir#33

Merged
Nic-dorman merged 1 commit into
mainfrom
chore/move-port-file-to-ant-sdk-subdir
Apr 29, 2026
Merged

chore: move antd port file to ant/sdk subdir#33
Nic-dorman merged 1 commit into
mainfrom
chore/move-port-file-to-ant-sdk-subdir

Conversation

@Nic-dorman
Copy link
Copy Markdown
Collaborator

Summary

antd's port file was colliding with the ant-node daemon — both write to %APPDATA%/ant (and the platform equivalents), so whichever started last would clobber the other's daemon.port. Move antd's port file into an sdk subdirectory so the two daemons can coexist.

Producer (antd/src/port_file.rs) and all 14 SDK consumers updated in lockstep, plus discovery tests in antd-py and antd-go, plus the root README path table.

New paths

Platform Path
Windows %APPDATA%\ant\sdk\daemon.port
macOS ~/Library/Application Support/ant/sdk/daemon.port
Linux $XDG_DATA_HOME/ant/sdk/daemon.port (or ~/.local/share/ant/sdk/daemon.port)

Compatibility

Hard cut-over, no fallback. An old antd writing to …/ant/ will not be discovered by a new SDK reading from …/ant/sdk/, and vice versa. The daemon binary and the SDK in use must be upgraded together. This is intentional — keeping a fallback would silently re-introduce the collision risk and obscure operator confusion when both daemons are running.

Test plan

  • cargo build --release for antd: clean
  • cargo test discover:: for antd-rust: 10/10 pass
  • go test ./... for antd-go: pass
  • pytest tests/test_discover.py for antd-py: 29/29 pass
  • CI on this PR

Follow-ups (post-merge)

  • Tag v0.5.2 (binary release for antd) + antd-go/v0.5.0 (Go module bump)
  • Bump indelible's .antd-versionv0.5.2 and go.mod antd-go pin → v0.5.0, ship indelible v0.1.3

🤖 Generated with Claude Code

antd's port file was colliding with the ant-node daemon — both write to
%APPDATA%/ant (and the platform equivalents), so whichever started last
would clobber the other's port file. Move antd's port file into an `sdk`
subdirectory so the two can coexist.

Producer (antd) and all 14 SDK consumers updated in lockstep, plus
antd-py and antd-go discovery tests, plus the root README path table.

New paths:
  Windows:  %APPDATA%\ant\sdk\daemon.port
  macOS:    ~/Library/Application Support/ant/sdk/daemon.port
  Linux:    $XDG_DATA_HOME/ant/sdk/daemon.port
            (or ~/.local/share/ant/sdk/daemon.port)

Hard cut-over with no fallback: an old antd writing to .../ant/ will not
be discovered by a new SDK reading from .../ant/sdk/, and vice versa.
Daemon and SDKs must be upgraded together.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Nic-dorman Nic-dorman merged commit 1cbfb3e into main Apr 29, 2026
3 checks passed
@Nic-dorman Nic-dorman deleted the chore/move-port-file-to-ant-sdk-subdir branch April 29, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant