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

Support main branch when fetching Arduino libraries from GitHub #2065

Open
evgenykochetkov opened this issue Nov 5, 2020 · 0 comments
Open

Comments

@evgenykochetkov
Copy link
Contributor

When creating a new repository, GitHub suggests calling the default branch main instead of master, and some existing repositories are migrating. We should support both when fetching libraries using #pragma XOD require "link_to_library".

Right now, we have master hardcoded in

// :: URL -> URL
const getGithubArchiveUrl = R.compose(
R.concat(R.__, '/archive/master.zip'),
R.when(R.pipe(R.tail, R.equals('/')), R.init)
);

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

No branches or pull requests

1 participant