Skip to content

Name a local package after the newest release behind it - #1217

Merged
yansfil merged 1 commit into
mainfrom
fix/local-build-version
Oct 16, 2026
Merged

yansfil merged 1 commit into
mainfrom
fix/local-build-version

Conversation

@yansfil

@yansfil yansfil commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Summary

로컬에서 패키징한 앱은 도움말 메뉴 등에 0.1.0-main.<커밋>으로 보였습니다.
0.1.0은 한 번도 올리지 않은 Rust 패키지 번호이고, 이 이름은 손으로 HIDE_VERSION을 넣어서 붙인 것입니다.
HIDE_VERSION 없이 패키징하면 git describe를 따르는데, 태그가 달린 커밋에서는 0.4.0-rc.5처럼 릴리스 번호가 그대로 붙어 ad-hoc 빌드가 릴리스인 척하고 자동 업데이트도 릴리스로 읽었습니다.
이제 로컬 패키지는 HIDE_VERSION 없이 만들고, 그 뒤에 있는 가장 새 릴리스 태그와 커밋으로 0.4.0-main.f77c2a43이라는 이름이 붙습니다(추적 파일이 바뀌어 있으면 .dirty).
HIDE_VERSION은 릴리스(태그)만 넣습니다. CI의 패키지 lane은 원래 넣고 있어 바뀌지 않습니다.

기존 (태그 커밋 f77c2a43a, HIDE_VERSION 없음): 0.4.0-rc.5            updater가 릴리스로 읽음
변경 후:                                     0.4.0-main.f77c2a43   semver 유효, updater는 개발 빌드로 읽음
HIDE_VERSION=v0.4.0-rc.5 (릴리스):           0.4.0-rc.5            그대로

Review

  • 판단해 주세요: 이름의 main은 브랜치와 상관없이 붙습니다(로컬 설치는 대부분 main). 브랜치 빌드도 -main.으로 보이는 것이 괜찮은지.
  • 조심해서 볼 파일: desktop/scripts/package.mjs - 이 버전은 hided build order(MAJOR.MINOR.PATCH)와 앱 번들 버전에 그대로 들어갑니다. 커밋이 숫자로만 되면 semver가 앞자리 0을 거부해서 git처럼 g를 붙입니다.

Evidence

  • 확인한 것: 같은 함수를 떼어 실행. 태그 커밋에서 기존 코드는 0.4.0-rc.5(updater 정규식 일치), 새 코드는 0.4.0-main.f77c2a43(semver 유효, updater 불일치), HIDE_VERSION=v0.4.0-rc.5는 0.4.0-rc.5 그대로.
  • 확인한 것: semver가 0.4.0-main.01234567은 거부하고 0.4.0-main.g01234567은 받는 것 확인. eslint, scripts/tests 365개 통과.
  • 확인하지 못한 것: 이 PR로 전체 패키징을 다시 돌리지는 않았습니다. CI는 HIDE_VERSION을 넣으므로 이 경로를 타지 않습니다.

A local package with no HIDE_VERSION took git describe's answer, which on
a tagged commit is the release itself (0.4.0-rc.5), so an ad-hoc build
claimed a release and the updater took it for one. AGENTS.md told agents
to set HIDE_VERSION by hand instead, and the hand-picked 0.1.0-main.<commit>
read as older than every release in the help menu and in hided's build
order. A local package is now <newest release>-main.<commit>, which is no
release number the updater accepts and orders with the releases it
follows; only a release passes HIDE_VERSION.
@yansfil
yansfil merged commit f54f5bb into main Oct 16, 2026
18 checks passed
@yansfil
yansfil deleted the fix/local-build-version branch October 16, 2026 01:30
yansfil added a commit that referenced this pull request Oct 16, 2026
…m the tools (#1273)

## Summary

- PR 카드가 우측 레인에 뜨면 rail 맨 위에 버튼이 하나 생기는데, PRs 도구와 같은 회색 PR 아이콘이라 도구가 두
개처럼 보였다.
- 승인된 설계(Task lens C, E, I)는 이 버튼을 PR 상태의 아이콘과 색(머지 가능 초록, 머지됨 보라 등)으로
그리고 아래에 짧은 구분선을 둔다. 코드가 둘 다 빠뜨렸다.
- 수정: 버튼과 레인 머리줄의 마크를 카드 PR의 상태 마크로 그리고, 버튼 아래에 도구와 가르는 선을 하나 둔다. 세션 기록은
지금처럼 문서 아이콘이다.

![rail 확대: 왼쪽 before, 가운데 after(라이트), 오른쪽 after(다크). 맨 위 버튼이 초록 PR 마크로
바뀌고 아래에 선이
생김](https://github.com/yansfil/pr-assets/blob/main/with-hide/hide/detail-slot-rail-mark/54e344b/rail-zoom.png?raw=true)

## Review

- **판단해 주세요**: 맨 위 버튼이 PRs 도구와 충분히 구별되는지(색과 선만으로 구별, 모양은 상태가 열린 PR이면 같은
glyph).
- **조심해서 볼 파일**: `web/src/DetailPanel.tsx` - `DetailIcon`이 목록의 PR 상태를
읽는다; 목록에 없는 PR은 상태 없이 기본 glyph를 그린다.

## Evidence

- **확인한 것**: `work-prs.spec.ts` 카드 테스트가 rail 순서 `detail, 구분선, memory,
prs, 구분선, files, changes`와 마크 상태(#31 mergeable, #37 merged)를 확인.
- **확인한 것**: `work-prs`, `right-lane`, `link-graph` e2e 20개, web lint,
web unit 1717개 통과(로컬, pinned Herdr 0.9.3).
- **확인한 것**: e2e 캡처로 라이트/다크 둘 다 Pen 설계(`보기 · PR #1217`:
`$--pr-mergeable` glyph, `보기 | tools divider`)와 맞음을 눈으로 확인.
- **확인하지 못한 것**: 데스크톱 앱 네이티브 화면 캡처는 하지 않았다(같은 웹 셸을 브라우저로 확인).

<details><summary>추가 증거</summary>

레인 전체: 왼쪽 before, 가운데 after 라이트, 오른쪽 after 다크. 머리줄의 `PR #31` 마크도 상태 색으로
바뀜.

![before
after](https://github.com/yansfil/pr-assets/blob/main/with-hide/hide/detail-slot-rail-mark/54e344b/before-after.png?raw=true)

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant