Skip to content

Conversation

@samsinsane
Copy link
Member

What does this PR do?

This PR introduces the --curl-src option which deprecates --no-curl (for backwards compatibility), this new option allows users to pick between:

  • none, replaces --no-curl
  • contrib, default and what is currently used
  • system, the system library

In addition to this new option, the Linux builds will test all three options to ensure unit tests continue to work and don't have issues with the settings.

How does this PR change Premake's behavior?

Users can still build with --no-curl but it will warn and prompt users to migrate to --curl-src=none.

The core focus of this PR was to allow users to build Premake with their system curl instead.

Anything else we should know?

Various unit tests, specifically Nuget tests, weren't properly checking for the http. This check has been added so the builds continue to work.

Did you check all the boxes?

  • Focus on a single fix or feature; remove any unrelated formatting or code changes
  • Add unit tests showing fix or feature works; all tests pass
  • Mention any related issues (put closes #XXXX in comment to auto-close issue when PR is merged)
  • Follow our coding conventions
  • Minimize the number of commits
  • Align documentation to your changes

You can now support Premake on our OpenCollective. Your contributions help us spend more time responding to requests like these!

@tritao
Copy link
Contributor

tritao commented Oct 3, 2024

We may want to update the message from https://github.com/premake/premake-core/blob/master/modules/vstudio/vs2010_nuget.lua#L413 as well.

@samsinsane
Copy link
Member Author

We may want to update the message from https://github.com/premake/premake-core/blob/master/modules/vstudio/vs2010_nuget.lua#L413 as well.

Good catch, I forgot to search the codebase for references to --no-curl.

@samsinsane samsinsane force-pushed the ssurtees/curlOptions branch from e16c4c4 to 72c6f24 Compare October 3, 2024 08:23
@nickclark2016
Copy link
Member

This feels like a good idea to allow for usage of the host's curl.

@tritao
Copy link
Contributor

tritao commented Nov 11, 2024

Is this one ready to merge?

@Jarod42
Copy link
Contributor

Jarod42 commented Nov 11, 2024

@tritao : there is at least conflicts to resolve.

@nickclark2016 nickclark2016 merged commit 5c1c591 into premake:master Nov 20, 2024
19 checks passed
@samsinsane samsinsane deleted the ssurtees/curlOptions branch November 20, 2024 16:40
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