Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make pacboy work the same in all envs and only ever map to one package #6

Merged
merged 9 commits into from
May 10, 2024

Conversation

lazka
Copy link
Member

@lazka lazka commented May 8, 2024

This fixes #4, see the commits for details. I tried to split it up as best as I can.

Summary:

  • All environments work the same now
  • MINGW32/64 fallback will now defaults to "name:p" instead of "name:m"
  • Fallback for all others will now default to "name:p" instead of "name:"
  • "name:l" and "name:m" are now deprecated

lazka added 4 commits May 8, 2024 21:21
From what I see this doesn't change anything, but for completeness
This was to not install mingw64 packages by default on 32bit systems.
32bit is no longer supported, and we want to remove the auto install
part for unrelated environments anyway, so this can be removed.
The "!= MINGW*" was likely there to cover the MSYS env, back when there
only was MINGW32/64. So that is equal to an empty prefix.

For UCRT/CLANG this means it will expand names to mingw packages
names like in MINGW32/64, but hardcoded to MINGW32/64, which is
probably not what we want, but will be fixed in the next commit.

This makes pacboy behave the same under all environments again.

See msys2#4
"pacboy -S ffmpeg" would by default install ffmpeg for mingw32 and mingw64.
Due to other logic bugs fixed in the last commit this did not apply
to other environments, where it would fail because no prefix would be added.

Ideally the command would work the same in all environments and would only
install for the active environment unless specifically asked for.

This changes things so that "pacboy -S ffmpeg" works the same as
"pacboy -S ffmpeg:p" did before in all envs.

This is a slight breaking change, though I'd argue the current behaviour was
unexpected and unlikely to be wanted by users.

Fixes msys2#4
source/pacboy/pacboy.sh Outdated Show resolved Hide resolved
source/pacboy/pacboy.sh Outdated Show resolved Hide resolved
source/pacboy/pacboy.sh Outdated Show resolved Hide resolved
@Kojoley
Copy link

Kojoley commented May 9, 2024

renatosilva#7 suggests that it is a good idea to bump the version in the help output after a behavioral change.

lazka added 5 commits May 10, 2024 15:19
These install packages for multiple environments. name:l was only
added for consistency.

It's unlikely someone wants to install for exactly those two
environments and it's easy to just use "name:x name:i" instead.

They still work, but let's hide them from the help output.
They are not shell specific, so just have one list to simplify.
Also try to make the help text a bit more clear by
showing to which names the input gets translated to
@lazka
Copy link
Member Author

lazka commented May 10, 2024

renatosilva#7 suggests that it is a good idea to bump the version in the help output after a behavioral change.

done

@lazka lazka merged commit b5fcc0f into msys2:main May 10, 2024
@lazka
Copy link
Member Author

lazka commented May 10, 2024

thanks!

@lazka
Copy link
Member Author

lazka commented May 10, 2024

Package update @ msys2/MSYS2-packages#4593

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.

Behaves differently in MINGW vs CLANG envs
3 participants