-
Couldn't load subscription status.
- Fork 124
Open
Description
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
xod/packages/xod-deploy/src/libraryManager.js
Lines 22 to 26 in a7d88dd
| // :: URL -> URL | |
| const getGithubArchiveUrl = R.compose( | |
| R.concat(R.__, '/archive/master.zip'), | |
| R.when(R.pipe(R.tail, R.equals('/')), R.init) | |
| ); |
Metadata
Metadata
Assignees
Labels
No labels