feat(install): canonical root install.hexa — hx install pins latest release tag#16
Merged
Merged
Conversation
이 패밀리의 모든 패키지가 루트 install.hexa 를 갖도록, wilson 에도 `hx install wilson` 이 호출하는 canonical 루트 install.hexa 를 추가한다. - TAG-PIN self-update (bootstrap-safe): WILSON_NO_SELF_UPDATE=1 + git 존재 여부로 게이트. fetch --tags → dirty면 stash → 기본 브랜치 checkout → reset --hard → 최신 v* 태그 detach. void 와 동일한 우선순위/관용구 (env/exec/exec_with_status/path_exists/run_or_die). - 실제 설치는 wilson 모델에 충실: 컴파일을 강제하지 않는다. build/<host>/wilson 은 gitignore + per-host + opt-in 이고 일부 Linux 호스트에서 링크 실패할 수 있다. 기본 경로는 인터프리터 `hexa run core/main.hexa` 이므로, bin/wilson(+ws) 실행 권한만 보장하고, 네이티브 빌드는 선택적 `wilson build` 임을 안내한다. - 종료 시 RESTORE: detach(핀한 태그) → 기본 브랜치 복원으로 다음 실행에서도 self-update 로직이 다시 돈다. 검증: `hexa parse install.hexa` 통과. --no-hardlinks 드라이 클론에서 v1.0.0 detach→main 복원 리허설 exit 0. Co-Authored-By: Claude Opus 4.8 (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.
What
Adds a canonical root
install.hexasohx install wilsonpins to the latest release tag, matching every other package in this family (void / airgenome / sidecar each ship a rootinstall.hexaheaded "Invoked byhx install <pkg>").How
TAG-PIN self-update (bootstrap-safe) — same precedence/idioms as void:
WILSON_NO_SELF_UPDATE=1+ git-presence (have("git")+.gitdir)fetch --tags→ dirty tree?git stash→ checkout default branch (dynamically detected viaorigin/HEAD) →reset --hard origin/<defb>→ detach latestv*tagInstall — faithful to wilson's model (no forced compile):
hexa run core/main.hexa); it needs no compile and works the moment hx symlinksbin/wilsononto PATHbuild/<host>/wilsonis gitignored + per-host + opt-in (wilson build) and can hard-fail on hosts whose toolchain can't link — so this hook does NOT compilebin/wilson(+bin/ws) is executable and prints that the native build is the optional, explicitwilson buildbin/wilsonper its detect_entry registryValidation
hexa parse install.hexa→ OK (parses cleanly)--no-hardlinksthrowaway clone: detach tov1.0.0→ restore tomain, exit 0🤖 Generated with Claude Code