Skip to content

Conversation

@marcocastignoli
Copy link
Member

@marcocastignoli marcocastignoli commented Dec 18, 2025

purge_paths, a list containing the files to be purged was created by adding resources with the wrong path "https://binaries.soliditylang.org//bin/list.json" instead of "https://binaries.soliditylang.org/bin/list.json" (notice the double slash before bin/list.json).

@marcocastignoli marcocastignoli changed the title Correct cut command in sync-r2.sh Fix command to create purge_paths in sync-r2.sh Dec 18, 2025
purge_paths+=("/${path}")
done < <(find . \( -wholename '*/list.*' -o -wholename '*/*-latest' -o -wholename '*/*-latest.*' \) | cut --characters 2-)
purge_paths+=("${path}")
done < <(find . \( -wholename '*/list.*' -o -wholename '*/*-latest' -o -wholename '*/*-latest.*' \) | cut -c 2-)
Copy link
Member

@r0qs r0qs Dec 19, 2025

Choose a reason for hiding this comment

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

Why the change to -c is needed? I see the commit message: "Correct cut command in sync-r2.sh" but I don't know for what reason you cannot use --characters. The man page says:

-c, --characters=LIST select only these characters

So both options should be valid. Is this an issue with the current version of cut being used by the GH action?

Copy link
Member Author

Choose a reason for hiding this comment

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

no, sorry it's just that on osx (where I tested the script) cut doesn't support --character but only -c.

Copy link
Collaborator

Choose a reason for hiding this comment

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

That's why we can't have nice things :(

The outdated shell utils that macOS ships with are a pain.

Copy link
Member

Choose a reason for hiding this comment

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

no, sorry it's just that on osx (where I tested the script) cut doesn't support --character but only -c.

Right, so can you revert that change?

Copy link
Member

@r0qs r0qs left a comment

Choose a reason for hiding this comment

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

Besides one comment. The PR looks good to me.

@cameel cameel changed the title Fix command to create purge_paths in sync-r2.sh Use macOS-compatible option format for purge_paths in sync-r2.sh Dec 20, 2025
@cameel cameel changed the title Use macOS-compatible option format for purge_paths in sync-r2.sh Fix resource paths in purge_paths in sync-r2.sh by removing unnecessary leading slashes Dec 23, 2025
@cameel cameel changed the title Fix resource paths in purge_paths in sync-r2.sh by removing unnecessary leading slashes Fix purge_paths in sync-r2.sh by removing unnecessary leading slashes Dec 23, 2025
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.

4 participants