Skip to content

Commit

Permalink
Fix file protocol referencing local tarball - fixes #639 (#1591)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian McKenzie authored Nov 1, 2016
1 parent c36dc4e commit 5fec1fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/resolvers/exotics/tarball-resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type PackageRequest from '../../package-request.js';
import TarballFetcher from '../../fetchers/tarball-fetcher.js';
import ExoticResolver from './exotic-resolver.js';
import Git from './git-resolver.js';
import {removeSuffix} from '../../util/misc.js';
import * as versionUtil from '../../util/version.js';
import * as crypto from '../../util/crypto.js';
import * as fs from '../../util/fs.js';
Expand Down Expand Up @@ -50,7 +51,7 @@ export default class TarballResolver extends ExoticResolver {
return shrunk;
}

const {url} = this;
const url = removeSuffix(this.url, 'file:');
let {hash, registry} = this;
let pkgJson;

Expand Down

0 comments on commit 5fec1fc

Please sign in to comment.