Skip to content

Fix release binary version mismatch#7

Merged
asabirov merged 4 commits intomain-forkfrom
fix/release-version-from-tag
Mar 29, 2026
Merged

Fix release binary version mismatch#7
asabirov merged 4 commits intomain-forkfrom
fix/release-version-from-tag

Conversation

@asabirov
Copy link
Copy Markdown
Owner

Summary

  • The v0.3.4 release binary incorrectly reported version 0.3.3 because softprops/action-gh-release does not overwrite existing assets — if a release was created manually with a stale binary first, the CI-built binary upload was silently skipped
  • The workflow now injects the version from the git tag (GITHUB_REF_NAME) into Exports.swift before building, so the binary always matches the tag regardless of what's hardcoded in source

Test plan

  • Push a test tag (e.g. v0.3.5-test) and verify the workflow sets the correct version in the built binary
  • Verify bcli --version output matches the tag

asabirov and others added 4 commits March 28, 2026 17:26
Two issues prevented Bear from recognizing edits made via the CLI:

1. Vector clock was being replaced instead of updated - incrementVectorClock
   created a new clock with only "Bear CLI", discarding all other device
   entries. Bear uses the vector clock to track changes across devices, so
   losing entries caused it to misinterpret the update. Now uses
   PropertyListSerialization to properly parse, preserve all device entries,
   and only increment the "Bear CLI" counter.

2. Text asset field not cleared on edit - when a note stored its content as
   an external asset (text field with downloadURL), the CLI wrote new content
   to textADP but left the old asset reference intact. Bear may read from
   the asset instead of textADP. Now explicitly sets text to null on update.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fix Bear app not detecting note changes from CLI
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The release workflow now injects the version from the git tag into
the source before building, ensuring the binary always reports the
correct version regardless of what is hardcoded in Exports.swift.
@asabirov asabirov merged commit 310262d into main-fork Mar 29, 2026
asabirov pushed a commit that referenced this pull request Apr 8, 2026
Surface per-record CloudKit errors from modify operations
asabirov added a commit that referenced this pull request Apr 8, 2026
Pass git tag version to Go ldflags so release binaries report correct version.

(reimplements PR #7)
asabirov added a commit that referenced this pull request Apr 8, 2026
Pass git tag version to Go ldflags so release binaries report correct version.

(reimplements PR #7)
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