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

t2 run/push: provide firmware node.js version to pre-compiled module resolution. Fixes gh-843 #977

Merged
merged 1 commit into from
Sep 15, 2016

Conversation

rwaldron
Copy link
Contributor

Signed-off-by: Rick Waldron waldron.rick@gmail.com

@@ -379,7 +379,10 @@ exportables.injectBinaryModules = function(globRoot, tempBundlePath, options) {
};

exportables.preBundle = function(options) {
return exportables.resolveBinaryModules(options);
return options.tessel.fetchCurrentNodeVersion().then(version => {
options.version = version;
Copy link
Contributor Author

@rwaldron rwaldron Sep 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be nodeVersion to match its naming in the code for the t2 version command

Possibly better approach: refactor to add a version property to the newly added tessel property, whose value is an object containing subject: version

@@ -1005,7 +1005,7 @@ controller.tesselEnvVersions = opts => {
// Figure out what commit SHA is running on it
var firmwareVersion = updates.findBuild(builds, 'sha', versionSha).version;

return tessel.fetchCurrentNodeVersion()
return tessel.fetchNodeProcessVersion()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change was solely to align with the other, newer function's name

…dule resolution. Fixes tesselgh-843

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
@HipsterBrown
Copy link
Contributor

LGTM 👍

@rwaldron rwaldron merged commit 2b08c0a into tessel:master Sep 15, 2016
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.

None yet

2 participants