Skip to content

Conversation

@GuillaumeGomez
Copy link
Member

This PR is to avoid situations like #17 / #18 to happen again as discussed on zulip.

cc @Kobzol @marcoieni

Copy link
Member

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks. Left one comment + could you please document the new field in the README?

&& path_name != file_name
{
match mirror_file.rename_from {
Some(ref rename_from) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I do something like this:

[[files]]
name = "rustc/llvm-mingw-20251104-ucrt-x86_64.zip"
sha256 = "171b298f46fa4b5653dc7b01cc5e709caca645991be8e1b0724466c4a282a1ac"
source = "https://github.com/mstorsjo/llvm-mingw/releases/download/20251104/llvm-mingw-20251104-ucrt-x86_64.zip"
license = "Apache License v2.0 with LLVM Exceptions"
rename-from = "foo"

Then there's no error. It would be great to also validate that rename-from isn't used if the filenames actually match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants