Files
gentoo/dev-util/claude-code/files/managed-settings-native.json
Jay Faulkner 83c0001fdd dev-util/claude-code: add 2.1.20; move to native
Previously, claude-code was installed via npm. Now, they are installing
via a "native" method which basically boils down to a curl|bash
downloading a single claude binary.

This implements the logic needed to get the right binary for arch/elibc
-- in fact, we're adding support for musl and arm with this change.

A major downside of this method: currently, via
/etc/claude-code/managed-settings.json, we're disabling all sorts of
update automagic -- even prior to the move to a "native" install method
-- but if a user somehow doesn't have DISABLE_AUTOUPDATER or
DISABLE_INSTALLATION_CHECKS in their managed-settings.json, claude will
helpfully "fix" their install by installing itself to ~/.local/ without
user consent. This is not-ideal, dangerous behavior that we warn about
on install.

Signed-off-by: Jay Faulkner <jayf@gentoo.org>
2026-01-27 10:12:10 -08:00

8 lines
119 B
JSON

{
"env": {
"DISABLE_AUTOUPDATER": "1",
"DISABLE_INSTALLATION_CHECKS": "1"
},
"installMethod": "native"
}