[BUG] apm install -g ignores executables: in the user manifest, but -g --frozen honours it
Maintainers usually reply within 1 day
Nobody has claimed this yet.
- #3969 by @danielmeppiel — closed without merging
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
Start with install/template.py:67 and trace how apm install -g loads the user scope manifest at ~/.apm/apm.yml; compare that path with the -g --frozen behavior. Reproduce with executables: {} and a package with hooks or MCP, then verify both commands leave the executables parked and the frozen install exits 0. The linked pull request is closed and unmerged.
Written by the indexing model from the issue text.
Description
Reporting and investigating a bug need no permission. Before implementing a
substantive fix for inclusion in APM, obtain human scope approval and a review
contact on this issue. See Contributing.
Describe the bug
apm install -g ignores the executables: policy in the user manifest (~/.apm/apm.yml), while apm install -g --frozen honours it. Install deploys gated executables, and every later --frozen then fails. Root cause: install/template.py:67 reads ~/apm.yml, because the source root is ~ rather than the user scope manifest. This was introduced via #3938.
To Reproduce
Found by the 0.37 red team, confirmed on main 94b0c693f6.
- Set
executables: {}in~/.apm/apm.ymland runapm install -gon a package with hooks or MCP. The executables are deployed. - Run
apm install -g --frozen. It fails.
Expected behavior
-g parks gated executables exactly like -g --frozen does, so -g --frozen exits 0 afterwards.
Additional context
0.37 red team finding F1. Out of scope: the apm approve -g UX.
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 430
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 285
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/apm
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug status/accepted
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
microsoft/apm#4059 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
microsoft/apm#4048 · 1 comment ·
Maintainers usually reply within 1 day
-
[BUG] apm compile reports 'Referenced file not found' for links with a #fragmentPossibly taken @bodapatisaikrishna claimed this 7 days ago. Openstatus/accepted
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
microsoft/apm#3255 · 2 comments ·
Maintainers usually reply within 1 day
-
[BUG] Claude command transform drops frontmatter keys Claude Code supports on commandsPossibly taken @abhishekacharya200 claimed this 4 days ago. Openarea/multi-target status/accepted theme/portability triage/recommended type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/apm#3067 · 2 comments ·
Maintainers usually reply within 1 day
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 89/100
Maintainers usually reply within 1 day
-
DoRA magnitude vectors are not loaded by Transformers load_adapter / from_pretrained(adapter_dir)Openpost-v1
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
huggingface/peft#4208 · 1 comment ·
Maintainers usually reply within 1 day
-
approved correction metadata
Difficulty 1/5 Under an hour Newbie friendliness 76/100
acl-org/acl-anthology#10996 · 2 comments ·
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
gke-labs/kube-agents#6620 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
ashhart/TensorFold#4150 · 3 comments ·
Maintainers usually reply within 1 day