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
@marcocastignoli marcocastignoli moved this to Sprint - Needs Review in Sourcify Public Jan 22, 2026
@marcocastignoli marcocastignoli self-assigned this Jan 22, 2026
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.

I'm fine with the change in https://github.com/argotorg/solc-bin/pull/178/changes#r2636402198 if that makes easier to test locally in different environments.

marcocastignoli and others added 3 commits January 26, 2026 14:23
Fix cut command to use -c instead of --characters.
Co-authored-by: Kamil Śliwak <kamil.sliwak@codepoets.it>
@marcocastignoli marcocastignoli force-pushed the fix-sync-r2-purge-payload branch from 1bc9a4f to b6ca119 Compare January 26, 2026 13:23
@marcocastignoli marcocastignoli merged commit e87567e into gh-pages Jan 26, 2026
7 checks passed
@marcocastignoli marcocastignoli deleted the fix-sync-r2-purge-payload branch January 26, 2026 13:50
@github-project-automation github-project-automation bot moved this from Sprint - Needs Review to Sprint - Done in Sourcify Public Jan 26, 2026
@manuelwedler manuelwedler moved this from Sprint - Done to COMPLETED in Sourcify Public Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: COMPLETED

Development

Successfully merging this pull request may close these issues.

4 participants