Comments (11)
Yes, it seems to work properly. Thank you.
from dwarfs.
I'd rather not go down that route as it will eventually result in the override not getting updated and thus binaries will be produced reporting a wrong version number.
It should be easy to build without the git repo if you use the source tarball. If you say you "prefer" to build from the git repo, it sounds like you could actually build from the tarball?
from dwarfs.
We already have infrastructure to automatically splice the version number into the git tag and the source code, so there is no risk of the override not getting updated in our scenario. You can see that here if you are curious: https://github.com/NixOS/nixpkgs/blob/b02fd49f1638f7241843aa5a4fe73d8bc9bf1599/pkgs/tools/filesystems/dwarfs/default.nix#L27 .
Yes, theoretically it's possible to use the source tarball. I have not tried, but I have checked it does have the relevant version files. But when the source tarball is not simply a tar of the related git hash and has ancillary files like this, it harms reproducibility which is why we prefer not to do it.
from dwarfs.
I'm worrying less about nix, more about others misusing the option.
I'll think about it.
from dwarfs.
Can you check if mhx/nixpkgs-version-override works for you? I've tested this locally with something like:
cmake .. -DWITH_TESTS=1 -DNIXPKGS_DWARFS_VERSION_OVERRIDE=v0.8.0 -GNinja
from dwarfs.
Don't test this yet, I should have waited for the CI pipeline to finish... ;)
from dwarfs.
Okay, this looks better.
from dwarfs.
Is there a reason to call this nixpkgs-specific? Is that a defense against misuse in your mind?
from dwarfs.
Is there a reason to call this nixpkgs-specific? Is that a defense against misuse in your mind?
It's both to document where the feature originated from and to discourage its use outside of nixpkgs. I still think it's a rather obscure use case. :)
from dwarfs.
Did you get a chance to test the code?
from dwarfs.
Thanks, merged into main.
from dwarfs.
Related Issues (20)
- Big memory usage in debian vs ubuntu when mounting a 120 dwarfs HOT 12
- locale fallback does not work properly HOT 11
- Accept forwards compatibility HOT 4
- Resize progress bar when terminal window is resized HOT 3
- xattrs support HOT 1
- Optimize segmenting by skipping zero filled blocks? HOT 49
- fusermount3: mounting over filesystem type 0x7366746e is forbidden HOT 5
- Signal 7 (SIGBUS) during extraction HOT 4
- recompress does not change the compression algorithm HOT 1
- Unable to do anything with image; truncated section header HOT 5
- Add support for Ubuntu HOT 2
- Version 0.7 added a spamming permission error. HOT 9
- Add integrity check from dwarfsextract to mount as well HOT 8
- UIDs/GIDs truncated to 16 bits HOT 6
- Command line option (for windows) to set a folder where writable files go [] HOT 10
- how do I use you software? HOT 3
- Consider supporting zstd dictionaries HOT 4
- [Feature Request] Create DWARFS Archive From TAR/STDIN HOT 6
- Trouble compiling: 'utf8cpp/utf8.h' file not found HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dwarfs.