Learn what's changed on crates.io
MIT License
Published by Byron about 2 years ago
This release drops git2
in favor of gitoxide
.
Advanced git2
based credential configuration isn't supported
anymore until gitoxide
catches up. It generally implements all
configuration options that are relevant for git
and fully implements
HTTP based authentication, but is probably lacking in regard to
non-default ssh configuration.
If that's a problem, prefer staying with the v12.X line.
git2
in favor of gitoxide
.gitoxide
is now used for cloning and fetching as well.git2
in favor of gitoxide
. (4cedf27)gitoxide
without removing git2 just yet. (878abe9)fetch_changes_with_options()
using gitoxide (900ae56)Published by Byron about 2 years ago
git-repository
as git
git-repository
as git
(74866b4)Published by Byron about 2 years ago
This release is v11.2, but correctly indicates the breaking change introduced by upgrading
git-repository
to v0.24, which fixes #23.
Published by Byron about 2 years ago
git-repository
v0.24 to simplify diff implementation.git-repository
v0.24 to simplify diff implementation. (9159397)Published by Byron about 2 years ago
Ignore directory deletions.
Previously deleted directories would be picked up as crate deletions,
with the crate name being the deleted directory.
Now only file deletions will be assumed to be crate deletions.
Published by Byron about 2 years ago
Ignore all changed files with an extension.
There are non-crate files that as far as we know all have file
extensions, as opposed to the crate files we are interested in, which do
not.
Thus skipping all files with extension helps us to get past the initial
commit which includes such files, like .github/*.yml
.
Related to https://github.com/rust-lang/docs.rs/pull/1807#issuecomment-1235158502
Published by Byron about 2 years ago
Published by Byron about 2 years ago
Published by Byron about 2 years ago
make fetches work again by using safe-performance mode of git-repository
.
This fixes the 'zlib stream broken' issue when fetching crates.io
changes which was caused by git-repository
configuring for
max-performance by default, which affects a crate used by git2
as
well. For some reason, changing to zlib-ng
as backend wasn't taken
kindly by libgit2
causing it to fail after a short while of receiving
a pack from the remote.
The fix avoids making such modifications to the zlib crate, allowing
both crates, git-repository
and git2
to co-exist in the same
dependency tree.
git-repository
. (23a66b9)Published by Byron about 2 years ago
Consider all crates yanked if 'yanked = true'.
Previously, due to a missing test, a bug snuck in that would assume
that all lines in an added files must be new versions, marking them
as Change::Added
. This ignored the fact that any line could also
carry a yanked crate, misrepresenting them.
This is now fixed, and yanked crates generally show up as
Change::Yanked
.
One might take this as a hint that diffentiating by yank status might
not be that useful after all as it doesn't scale that well. Maybe
a future version changes how Change
is represented.
Published by Byron about 2 years ago
make the name of the remote configurable.
This is primarily used in testing and we try even harder to make it fail
to deal with squashed remote references, but it seems to work fine.
For good measure, now using +
in the refspec to assure it forces
an update.
Published by Byron about 2 years ago
Use gitoxide
Repository
instead of git2::Repository
This comes with plenty of changes to the API of the
last_seen_reference()
and to the lower-level methods that take
object ids (now git::hash::ObjectId
.
Note that git2
is still used internally for fetching and cloning.
This change was made to assure that at no time there are two open
repositories (once for git2, once for gitoxide
), as this has the
potential to double resource usage for file handles.
move CloneOptions
into index
module.
The index
module is now public for that reason.
Clippy helped 2 times to make code idiomatic.
gitoxide
(23e14af)gitoxide
Repository
instead of git2::Repository
(2d3a182)Index
on the new fixture (f9e31f2)CloneOptions
into index
module. (07f4b6c)Published by Byron over 2 years ago
Add support for detecting deleted crates.
Previously there was no need to do that as deletions couldn't happen -
crates are yanked instead.
Now that the ecosystem experienced its first (known) supply-chain attack
crates can also be deleted and we should be able to detect that to allow
downstream users to act on this automatically.
Clippy helped 1 time to make code idiomatic.
Published by Byron over 2 years ago
git2
v0.14, a BREAKING change. In order to use this release, assure that other dependencies also use git2
v0.14.Published by Byron over 2 years ago