Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure that locked deps are obeyed for packaging #693

Merged
merged 1 commit into from
Feb 24, 2015

Conversation

gcymbalski
Copy link
Contributor

Make sure that Make calls rebar appropriately.

To test:
To test:

  • Run make package! Observe output.
  • Make sure that you don't see something like the below (as in previous builds)

make[1]: Entering directory `/home/whatever'
./rebar get-deps

but instead

./rebar -C rebar.config.lock get-deps

@cmeiklejohn
Copy link
Contributor

👍 looks good; built with the specified locked deps.

cmeiklejohn added a commit that referenced this pull request Feb 24, 2015
Make sure that locked deps are obeyed for packaging
@cmeiklejohn cmeiklejohn merged commit 75d736d into 2.0 Feb 24, 2015
@cmeiklejohn cmeiklejohn deleted the obey-locked-deps branch February 24, 2015 23:37
@jaredmorrow
Copy link
Contributor

This won't work for some packages because they callback into the makefile when they build. You can fix it pretty easily, but will need to test it on all the platforms.

So checking in node_package to do due diligence, RPM/Deb/OSX are just fine, they call back into 'make rel' only (but you'll need to make sure that doesn't force a new deps requirement).

The following need to be changed to call only make rel:

https://github.com/basho/node_package/blob/develop/priv/templates/fbsd/Makefile#L156
https://github.com/basho/node_package/blob/develop/priv/templates/fbsdng/Makefile#L91
https://github.com/basho/node_package/blob/develop/priv/templates/solaris/Makefile#L29
https://github.com/basho/node_package/blob/develop/priv/templates/smartos/Makefile#L246

I'll leave testing my theory as an exercise to the reader ;)

@gcymbalski
Copy link
Contributor Author

Very cool, I was wondering if node_package would need tweaks. Thanks for the heads-up :)

@jaredmorrow
Copy link
Contributor

No problem, that would've been a really hard bug to track down.

On Tuesday, February 24, 2015, Greg Cymbalski [email protected]
wrote:

Very cool, I was wondering if node_package would need tweaks. Thanks for
the heads-up :)


Reply to this email directly or view it on GitHub
#693 (comment).

cmeiklejohn added a commit that referenced this pull request May 2, 2015
Make sure that locked deps are obeyed for packaging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants