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

Fix minor issues relating to #511 #569

Merged
merged 11 commits into from
Oct 7, 2022

Conversation

tobil4sk
Copy link
Member

@tobil4sk tobil4sk commented Oct 6, 2022

This fixes two main issues with installing from hxml (#511):

  • If a target library is specified to be installed from git, then we don't need to check the haxelib server's available versions, as we're not installing from there anyway. (This will also avoid the failing test in Migrate to argon2id for storing passwords #564)
  • We ignore target compilation flags (e.g. --cpp, --java, etc.) if the target libraries are already specified, regardless of the capitalisation of the library name. So that -lib HXCPP will still prevent the duplicate install.

This was named AllInstallData previously to avoid a conflict with
another type, but that type is gone now (since HaxeFoundation#557).
The variable and function names were changed erroneously in HaxeFoundation#557 via
find and replace.
This method, on the other hand, was missed out in HaxeFoundation#557
The function doesn't just get the library versions, but also the
correctly capitalised library name.
We have to live with the current situation, and that means checking how
the library should be capitalised
If we are installing a target library (e.g. hxcpp) it via git/hg, there
is no need to check the server data.

This avoids errors if we cannot connect to the server or if the server
does not have the library.
So that we ignore --cpp if we find -lib hxcpp, regardless of how hxcpp
is capitalised.
src/haxelib/api/LibFlagData.hx Outdated Show resolved Hide resolved
@Simn Simn merged commit 1d79b80 into HaxeFoundation:development Oct 7, 2022
@tobil4sk tobil4sk deleted the target-lib-fixes branch October 7, 2022 14:11
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