Skip to content

Conversation

@lipskis
Copy link
Contributor

@lipskis lipskis commented Oct 7, 2025

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 without the --keep-agent flag. This results in the script discarding the local binary.

This change adds the _APPSIGNAL_BUILD_AGENT_PATH env variable to the build script in README.md and removes the --keep-agent argument from the build:me script definition in pyproject.toml so that the env variable is picked up by the project installation and build steps.

[skip ci]
[skip changeset]

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]
@lipskis lipskis self-assigned this Oct 7, 2025
@lipskis lipskis added chore A small task that takes a day or two at the most. dev happiness Issues that improve developer happiness once they are resolved. labels Oct 7, 2025
@lipskis lipskis requested review from tombruijn and unflxw October 7, 2025 12:25
@backlog-helper
Copy link

backlog-helper bot commented Oct 7, 2025

✔️ All good!

New issue guide | Backlog management | Rules | Feedback

@tombruijn
Copy link
Member

I'll let Noemi review this. I know she worked on this before :)

@tombruijn tombruijn removed their request for review October 7, 2025 12:52
Copy link
Contributor

@unflxw unflxw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this! It's bitten me in the past :)

Remove `--keep-agent` argument from `build:me` script definition, to
avoid overwriting `_APPSIGNAL_BUILD_AGENT_PATH` with an empty string.
@lipskis lipskis merged commit 8e10cca into main Oct 8, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore A small task that takes a day or two at the most. dev happiness Issues that improve developer happiness once they are resolved.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants