heroku-buildpack-phoenix-static icon indicating copy to clipboard operation
heroku-buildpack-phoenix-static copied to clipboard

heroku build fails when node patch not specified

Open OfTheDelmer opened this issue 5 years ago • 4 comments

Setting node_version=10.15 in the phoenix_static_buildpack.config led to a heroku build failure:

Downloading and installing node 10.15.3...
       Installing Node 10.15...
mv: cannot stat '/tmp/node-v10.15-linux-x64/*': No such file or directory

Examining the result of tar xzf /tmp/node-v10.15-linux-x64 -C /tmp with ls /tmp we see the following:

node-v10.15-linux-x64.tar.gz node-v10.15.3-linux-x64

Note the extracted folder includes the patch and causes following to fail in when installing node because the node-version does not have the patch specified.

 mv /tmp/node-v$node_version-linux-x64/* $node_dir

OfTheDelmer avatar May 14 '19 23:05 OfTheDelmer

same problem here

prem-prakash avatar Aug 14 '19 13:08 prem-prakash

@prem-prakash @OfTheDelmer Did you find a fix?

hashim-sohail avatar Feb 02 '21 07:02 hashim-sohail

@hashim-sohail I just added the patch version

prem-prakash avatar Feb 02 '21 12:02 prem-prakash

Noting that I got the same error:

Installing binaries
Resolving node version 14.7...
Downloading and installing node 14.7.0...
       Installing Node 14.7...
mv: cannot stat '/tmp/node-v14.7-linux-x64/*': No such file or directory
 !     Push rejected, failed to compile Phoenix app.

And resolved it by adding the precise version to my phoenix_static_buildpack.config file in the root of my project directory: node_version=14.7.0

Grantimus9 avatar Mar 11 '21 03:03 Grantimus9