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

Remove the custom node-capnp import logic. #3413

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

zenhack
Copy link
Collaborator

@zenhack zenhack commented Aug 22, 2020

This removes the custom logic to import node-capnp, and instead
installs deps/node-capnp as an npm dependency of the shell directly.
To make this work, we also need to get the schema into meteor's
node_modules, so we create a package for those too.


No functional change, just cleans up one of the gnarly bits of our build system.

I also have a local change to node-capnp that skips creating the extra node_modules directory. When this lands I'll send a PR for that too.

This removes the custom logic to import node-capnp, and instead
installs deps/node-capnp as an npm dependency of the shell directly.
To make this work, we also need to get the schema into meteor's
node_modules, so we create a package for those too.
zenhack added a commit to zenhack/node-capnp that referenced this pull request Aug 22, 2020
sandstorm-io/sandstorm#3413 removes the need for
this (and I seriously doubt anyone else is using our ekam rule).
@zenhack
Copy link
Collaborator Author

zenhack commented Aug 22, 2020

Looks like on my system it was picking up the system capnp; will have to do a bit more fiddling to get it to use the in-tree one. Marking this as a draft for now.

@zenhack zenhack marked this pull request as draft August 22, 2020 19:08
@ocdtrekkie ocdtrekkie added the sandstorm-dev Issues hacking on Sandstorm label Aug 22, 2020
@kentonv
Copy link
Member

kentonv commented Aug 29, 2020

Does this mean that the module gets built against the installed version of libcapnp, rather than the one built in-tree?

@zenhack
Copy link
Collaborator Author

zenhack commented Aug 29, 2020

See my comment above: yes, but that was not my intent, which is why this is marked as a draft.

@kentonv
Copy link
Member

kentonv commented Aug 29, 2020

See my comment above:

lol I can't read

@ocdtrekkie ocdtrekkie assigned ocdtrekkie and zenhack and unassigned ocdtrekkie Nov 14, 2020
zenhack added a commit to zenhack/node-capnp that referenced this pull request Dec 7, 2020
...via an environment variable. I'm using this in:

    sandstorm-io/sandstorm#3413

to avoid building the module twice.
zenhack added a commit to zenhack/node-capnp that referenced this pull request Dec 7, 2020
With sandstorm-io/sandstorm#3413, this will no
longer be needed.
@zenhack zenhack marked this pull request as ready for review December 7, 2020 15:38
@zenhack
Copy link
Collaborator Author

zenhack commented Dec 7, 2020

Alright, I've gotten it to use the in-tree capnp now (and only build capnp.node once). This required changes in node-capnp's repo, so capnproto/node-capnp#65 will have to be merged for this to work.

@zenhack zenhack removed their assignment Dec 7, 2020
@ocdtrekkie
Copy link
Collaborator

I'll hold on the update to node-capnp being merged, and then I'll mark this ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sandstorm-dev Issues hacking on Sandstorm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants