Skip to content

fix: find example file in Nix flake installs - #58

Merged
robcohen merged 1 commit into
mainfrom
fix/example-file-nix
Jan 28, 2026
Merged

robcohen merged 1 commit into
mainfrom
fix/example-file-nix

Conversation

@robcohen

Copy link
Copy Markdown
Member

Summary

  • The "Open Example Beancount" button fails with "Example file not found" when running via nix run
  • Add fallback path resolution relative to the executable (../lib/rustfava/resources/example.beancount)
  • Nix tarball layout places the file at lib/rustfava/resources/ while the binary is at bin/

Test plan

  • nix run github:rustledger/rustfava#desktop --refresh → Open Example Beancount button works

🤖 Generated with Claude Code

Add fallback path resolution relative to the executable for Nix
installs where the layout is bin/rustfava-desktop alongside
lib/rustfava/resources/example.beancount.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@robcohen
robcohen enabled auto-merge (squash) January 28, 2026 23:19
@robcohen
robcohen merged commit 0504bea into main Jan 28, 2026
@robcohen
robcohen deleted the fix/example-file-nix branch January 28, 2026 23:19
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