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

Try to produce consistent monorepo tgz hashes #36

Merged
merged 18 commits into from
May 22, 2018
Merged

Conversation

solsson
Copy link
Contributor

@solsson solsson commented May 14, 2018

These hashes should be for a minimal tgz, with only a package.json containing dependencies. I think file timestamps was the issue, but we need to validate this for actual builds not only https://github.com/solsson/npm-monorepo-example

@solsson
Copy link
Contributor Author

solsson commented May 14, 2018

By the way I won't be nesting more async levels. Will have to port the stuff to async+await.

@solsson
Copy link
Contributor Author

solsson commented May 15, 2018

Looks like this didn't solve the problem at build. I'll need to think harder :)

@solsson
Copy link
Contributor Author

solsson commented May 21, 2018

Includes #35

Built solsson/build-contract@sha256:df12c257e573b9e66ad16a79c2490e923398018ea5817157f054a14774209e37

@solsson
Copy link
Contributor Author

solsson commented May 21, 2018

The issue seems to have been some platform dependence in nodejs's zlib. The best reference I could find was nodejs/node#12244 but I'm not sure it's the same problem. Using pako instead on all platforms.

@solsson
Copy link
Contributor Author

solsson commented May 21, 2018

@atamon Seems to work across dev+build. Ok to merge?

@atamon
Copy link
Contributor

atamon commented May 21, 2018

Go ahead! I think I got the gist of this PR at least :)

@atamon atamon merged commit fc7ab7c into master May 22, 2018
@solsson solsson mentioned this pull request May 24, 2018
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.

2 participants