Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Install: Bind to specific binaries commit #516

Merged
merged 1 commit into from
Nov 6, 2014
Merged

Install: Bind to specific binaries commit #516

merged 1 commit into from
Nov 6, 2014

Conversation

am11
Copy link
Contributor

@am11 am11 commented Nov 6, 2014

Since we can't get file from tag via URL and it doesn't make sense to; release a node-sass-binaries, download a tarball and extract specific binary file, I think adding node-sass-binaries commit hash to package.json before releasing the npm is easy.

/cc @kevva

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 4075fe4 on am11:master into 29871de on sass:master.

@@ -36,9 +36,14 @@ function fetch(name) {
strip: 1
});

var commitHash = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'package.json'), 'utf8')).binaries;
Copy link
Member

Choose a reason for hiding this comment

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

require('../package.json').binaries

@kevva
Copy link
Member

kevva commented Nov 6, 2014

Why don't we tag them instead of using the commit hash?

@am11
Copy link
Contributor Author

am11 commented Nov 6, 2014

How would the tag URL work?

@kevva
Copy link
Member

kevva commented Nov 6, 2014

@am11
Copy link
Contributor Author

am11 commented Nov 6, 2014

Is it a branch name or tag? I can't access this for example: https://raw.github.com/sass/node-sass/v1.1/package.json

@kevva
Copy link
Member

kevva commented Nov 6, 2014

That's a tag. Like this for example https://raw.githubusercontent.com/sass/node-sass/v1.1.4/package.json.

@am11
Copy link
Contributor Author

am11 commented Nov 6, 2014

Ah that's neat!

But does it make sense? We would always have to make a release on binaries just for sake of this line.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 13ff5cc on am11:master into 29871de on sass:master.

@am11
Copy link
Contributor Author

am11 commented Nov 6, 2014

@kevva
Copy link
Member

kevva commented Nov 6, 2014

Wrong tagging. Should be semver and mirror this repo. I've fixed it.

@am11
Copy link
Contributor Author

am11 commented Nov 6, 2014

Check now.

@am11
Copy link
Contributor Author

am11 commented Nov 6, 2014

BTW, we don't need 1.1.5. This should be 1.2. Why are you keep changing on node-sass-binaries?

am11 added a commit that referenced this pull request Nov 6, 2014
Install: Bind to specific binaries commit
@am11 am11 merged commit b8ccee0 into sass:master Nov 6, 2014
@kevva
Copy link
Member

kevva commented Nov 6, 2014

Goooodie! We don't need to do a release on node-sass-binaries. Just tag it locally and push git tag v1.2.0 && git push origin master --tags.

@andrew
Copy link
Contributor

andrew commented Nov 6, 2014

Shall I 🚢?

@kevva
Copy link
Member

kevva commented Nov 6, 2014

🚢 it

@kevva
Copy link
Member

kevva commented Nov 6, 2014

Or wait. Seems like 5919c6f broke something.

@andrew
Copy link
Contributor

andrew commented Nov 6, 2014

I just published it and yes, it appears to be broken, or at least building from source and not using any of the binaries 😦

@kevva
Copy link
Member

kevva commented Nov 6, 2014

Should be fixed now.

@andrew
Copy link
Contributor

andrew commented Nov 6, 2014

Couldn't connect to https://raw.githubusercontent.com/sass/node-sass/v1.2.0/darwin-x64-v8-3.14/binding.node (404)

@kevva
Copy link
Member

kevva commented Nov 6, 2014

de63cd6. Make sure you have to libsass directory cloned too. It's currently not.

../src/sass_context_wrapper.h:1:36: fatal error: libsass/sass_interface.h: No such file or directory`

@andrew
Copy link
Contributor

andrew commented Nov 6, 2014

@kevva can you explain that about libsass? Where was that change made and how do I reproduce it?

@kevva
Copy link
Member

kevva commented Nov 6, 2014

There's no change done to it. But you doesn't seem to have it locally in the src folder. Or does building work locally?

@kevva
Copy link
Member

kevva commented Nov 6, 2014

Seems to work fine now. Building too. 👍

@andrew
Copy link
Contributor

andrew commented Nov 6, 2014

Yeah except the linux x64 binding doesn't work on heroku, got a meeting now but will try a binary from my VM later this afternoon.

am11 pushed a commit to am11/node-sass-binaries that referenced this pull request Dec 24, 2014
* Built on CentOS 5.11 with GCC 4.4.7.
* Credit goes to @mgreter based on:
  sass/node-sass#516 (comment).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants