Skip to content

Commit

Permalink
replace custom env var with standard flag to skip prebuilt download (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rochdev authored Jun 17, 2019
1 parent 5563e2b commit 02e7ad0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/post_install.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ const tar = require('tar')
const pkg = require('../package.json')

const name = `${os.platform()}-${os.arch()}`
const buildFromSource = process.env.npm_config_build_from_source

if (process.env.DD_NATIVE_METRICS !== 'false') {
if (process.env.DD_SKIP_PREBUILT_DOWNLOAD !== 'true') {
if (buildFromSource !== 'true' && buildFromSource !== 'dd-trace') {
download(`v${pkg.version}`)
.catch(() => getLatestTag().then(download))
.then(persist)
Expand Down

0 comments on commit 02e7ad0

Please sign in to comment.