Changelog for nvfetcher-0.7.0.0
Revision history for nvfetcher
0.7.0.0
Now nvfetcher removes all files except generated.json and generated.nix in _sources before each run. If you do want to keep those files, you can use the new CLI option --keep-old. In addition, a new target purge is introduced for resetting the state of nvfetcher by deleting the shake database saved in XDG directory.
- Quote package name passed to nvchecker
- Add
url.nameoption to specify the file name in prefetch - Clean build dir before build
- Support keep going on fetch failure
- Add
--commit-summary - Support sparseCheckout
0.6.2.0
- Rework config parsing with toml-reader
0.6.1.0
- Replace
nix-prefetchwithnix-prefetch-gitandnix-prefetch-url
0.6.0.0
- Parse error output from nvchecker
- Add source and fetcher for Docker containers (Thanks to @amesgen)
- Add option fetch.force to always rerun the prefetch rule
- Add
fetchGitHubRelease'toPackageSet - Add
GetGitCommitDaterule - Add
--keyfileto pass nvchecker keyfile - Remove IFD from extracing sources
0.5.0.0
There have been many significant changes since the last release.
Starting from this version, nvfetcher no longer requires shake database for each project,
in other words, there is no need to commit the database in git or share it between machines.
Also, a machine-readable generated.json will be generated for convenience.
Migration
The option in TOML configuration cargo_lock (string) was changed to cargo_locks (list of strings), since now nvfetcher supports handling multi-cargo locks.
- Use
fetchFromGitHubas the GitHub fetcher (introducesnix-prefetch) - Add cmd version source
- Support pinning a package
- Tweak src name to extract .vsx file properly
- Add option --filter to specify packages to update
- Fix missing
argActionAfterBuild - Add one shot nvchecker rule independent of package definition
- Don't cache generated nix exprs in shake database
- Add
fetchTarball - Produce parser readable
generated.json - Internalize shake database
- Validate config before decoding
- Extract
ConfigfromArgand save it to shake extra - Breakdown
Argsto provide a more concise API - Support multi-cargo lock files
- Pretty print rules in command line
0.4.0.0
- Rename
_buildto_sources - Remove the symlink
sources.nix -> _sources/generated.nix- Remove CLI option
--output(was used to set the symlink source name,sources.nixby default) - Add CLI option
build-dirto specify build directory (_sourcesby default)
- Remove CLI option
- Add CLI option
--commit-changesto commit changes of build directory - Support openvsx and vsmarketplace version sources (needs new version of nvchecker)
- Support attributes pass through
- Fix the bug that Core rule was cut off even if the configuration has changed
(no longer needs to use
nvfetcher cleanto keep the build system consistency manually) - Fix the parser of git source in Cargo.lock
- Fix wrong trailing white spances in generated nix expr
- Fix missing semicolon in generated nix expr that reads Cargo.lock file
- Enhance eDSL experience
- Add some unit tests
0.3.0.0
There are massive enhancements since the last release:
- Add support for nvchecker list options
- Refactor TOML config parsing
- Remove version specification in fetcher config (
fetch.url = url:version->fetch.url = url) - Add support for calculating
cargoLockforrustPlatform.buildRustPackage - Add support for nvchecker global options
- Remove ambiguous branch specification (
git.branch) from git fetcher - Enable parallelism by default
- Add a global retry option
- Rename
.shaketo_build - Generate nix output file in
_build, and symlink it to../sources.nix(You have to keep_buildas thenvfetcherrun result) - Support extracting arbitrary files from fetched package source
- Add nvchecker upstream sources
src.webpageandsrc.httpheader - Add nvchecker upstream source
src.github_tag - Share CLI between
runNvfetcher(usenvfetcherin the DSL way) andnvfetcherexecutable program - Nix related improvements:
- Add a development shell
ghcWithNvfetcherfor people who want to usenvfetcheras a Haskell library - Generate command line completion for the executable
- Add a development shell
0.2.0.0
- Generated package sources will be sorted alphabetically.
- CLI program now supports
nix-git-prefetchconfigurations in TOML. - Lenses are added for some data types.
- CLI options are no loger inherited from Shake. Now
nvfetcherhas its own CLI options with completion support.
0.1.0.0
- First version. Released on an unsuspecting world.