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

Adds support for hosting sites other than GitHub. #157

Merged
merged 6 commits into from
Jun 24, 2024

Conversation

ryanmrichard
Copy link
Collaborator

@ryanmrichard ryanmrichard commented Jun 18, 2024

Is this pull request associated with an issue(s)?
No.

Description
Right now CMaize will crash if URL on a dependency is to any site other than GitHub (this is
because the internals actually manipulate the URL and are thus tied to GitHub's interface). This PR creates a new class which works with arbitrary URLs; however, the resulting class is less feature-rich (no private repos for example). Ultimately the internal logic dispatches to the old GitHub class if the url is for GitHub and the new class otherwise.

TODOs
Tests.

Edit: Apparently you can't use FetchContent in scripting mode, which makes it hard to test fetching from somewhere other than GitHub (which also isn't tested). Instead I've verified that these changes work in TensorWrapper (where I needed Eigen, which is hosted on GitLab)

@ryanmrichard ryanmrichard self-assigned this Jun 18, 2024
@ryanmrichard ryanmrichard changed the title [WIP] Adds support for hosting sites other than GitHub. Adds support for hosting sites other than GitHub. Jun 19, 2024
@ryanmrichard ryanmrichard marked this pull request as ready for review June 24, 2024 18:35
@ryanmrichard ryanmrichard merged commit 4c9f063 into master Jun 24, 2024
7 checks passed
@ryanmrichard ryanmrichard deleted the non_github_support branch June 24, 2024 18:35
Copy link

🚀 [bumpr] Bumped! New version:v1.1.4 Changes:v1.1.3...v1.1.4

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.

1 participant