mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: read flake version from workspace Cargo metadata
Co-authored-by: sxyazi <17523360+sxyazi@users.noreply.github.com>
This commit is contained in:
parent
3a44c8ae56
commit
34ea8139fb
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@
|
||||||
rev = self.shortRev or self.dirtyShortRev or "dirty";
|
rev = self.shortRev or self.dirtyShortRev or "dirty";
|
||||||
date = self.lastModifiedDate or self.lastModified or "19700101";
|
date = self.lastModifiedDate or self.lastModified or "19700101";
|
||||||
version =
|
version =
|
||||||
(builtins.fromTOML (builtins.readFile ./yazi-fm/Cargo.toml)).package.version
|
(builtins.fromTOML (builtins.readFile ./Cargo.toml)).workspace.package.version
|
||||||
+ "pre${builtins.substring 0 8 date}_${rev}";
|
+ "pre${builtins.substring 0 8 date}_${rev}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue