Skip to content

Commit 3580a5a

Browse files
committed
Fix custom agent build instructions
Currently, README.md suggests that running `hatch run build:me --keep-agent` will keep the agent binary from the `src/appsignal` directory intact. But as a part of the build environment setup, `hatch` installs project in development mode, which runs the `src/scripts/build_hook.py` script. This results in the script discarding the local binary, despite the `--keep-agent` flag. This change adds `_APPSIGNAL_BUILD_AGENT_PATH` env variable to the build script, so that it is picked up by the project installation and build steps. [skip ci]
1 parent ddec240 commit 3580a5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ hatch run build:for <triple> # for a specific agent triple
9191
hatch run build:me /path/to/agent
9292
# or place the desired agent binary at
9393
# `src/appsignal/appsignal-agent`, and then:
94-
hatch run build:me --keep-agent
94+
_APPSIGNAL_BUILD_AGENT_PATH="--keep-agent" hatch run build:me --keep-agent
9595
```
9696

9797
### Clean up build artifacts

0 commit comments

Comments
 (0)