chore: move antd port file to ant/sdk subdir#33
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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'sdaemon.port. Move antd's port file into ansdksubdirectory 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
%APPDATA%\ant\sdk\daemon.port~/Library/Application Support/ant/sdk/daemon.port$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 --releasefor antd: cleancargo test discover::for antd-rust: 10/10 passgo test ./...for antd-go: passpytest tests/test_discover.pyfor antd-py: 29/29 passFollow-ups (post-merge)
v0.5.2(binary release for antd) +antd-go/v0.5.0(Go module bump).antd-version→v0.5.2andgo.modantd-go pin →v0.5.0, ship indelible v0.1.3🤖 Generated with Claude Code