Skip to content

Commit

Permalink
Merge pull request #2 from transloadit/https-fixup
Browse files Browse the repository at this point in the history
generateNix: force using https URLs
  • Loading branch information
kvz authored Nov 3, 2021
2 parents 262592b + 276ccda commit 2ec29a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/generateNix.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ function prefetchgit(url, rev) {
}

function fetchgit(fileName, url, rev, branch, builtinFetchGit, actualName) {
url = url.replace(/^git:\/\/github/, 'https://github')
const prefetched = prefetchgit(url, rev)
const packageJSON = JSON.parse(
fs.readFileSync(`${prefetched.path}/package.json`),
Expand Down

0 comments on commit 2ec29a2

Please sign in to comment.