Skip to content

v0.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 07 Nov 15:13
· 19 commits to refs/heads/master since this release
d19b67f

What's Changed

Working with lock files

Previously, Protofetch could not tell if a protofetch.lock file matched the contents of protofetch.toml. Whenever you edited protofetch.toml, you had to run protofetch fetch -f to update the lock file. This is no longer the case: a lock file is updated automatically.

It is also possible to verify that the lock file is up to date with the --locked CLI flag. This can be useful on CI.

This feature required some changes to the lock file format, so old lock files need to be updated using protofetch update.

Git protocol

It was a common practice to specify the git protocol in protofetch.toml. However, this was not ideal, as different people might prefer to use different protocols to fetch files from the same repository.

We have addressed this by making the default protocol configurable. By default protofetch will use ssh, and if you want to use https, you can either set a PROTOFETCH_GIT_PROTOCOL=https environment variable, or create a config file with the following content:

# ~/.config/protofetch/config.toml
[git]
protocol = "https"

It is now recommended to remove the protocol specification from the protofetch.toml descriptors.

Cache location

The default cache directory has been changed from ~/.protofetch/cache to ~/.cache/protofetch. You may want to remove the old directory when you are no longer using old protofetch versions.

Nix flake

The protofetch repository is now a nix flake (contributed by @gshuflin). For example, it allows you to run protofetch without installing it with nix run github:coralogix/protofetch.

Detailed Changelog