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

symlinked modules are not copied over on run/publish #371

Open
dtex opened this issue Oct 12, 2015 · 12 comments
Open

symlinked modules are not copied over on run/publish #371

dtex opened this issue Oct 12, 2015 · 12 comments
Assignees

Comments

@dtex
Copy link
Contributor

dtex commented Oct 12, 2015

If there aren't any reasons this can't or shouldn't be done I'll give it a shot.

@johnnyman727
Copy link
Contributor

Oooof nice catch @dtex!

@dtex
Copy link
Contributor Author

dtex commented Oct 13, 2015

It's an fstream thing. Trying to determine if it is a bug or intended behavior.

@dtex
Copy link
Contributor Author

dtex commented Oct 13, 2015

A PR was submitted a couple of years ago but is still open. I've pinged the assignee:

npm/fstream#16

@dtex
Copy link
Contributor Author

dtex commented Oct 13, 2015

Cautionary note: My use case for including symlinks was so that I could link to local repos of modules I contribute to. Since I am running npm install in those local repos the devDependencies are installed along with the dependencies. It's pretty easy to run out of space when those are get pushed to the Tessel. Running install with --production gets around that.

npm install --production

Also watch out for .git directories.

@rwaldron
Copy link
Contributor

We can add these to the implied .tesselignore entries https://github.com/tessel/t2-cli/blob/master/lib/tessel/deploy.js#L212-L219

@dtex
Copy link
Contributor Author

dtex commented Jan 4, 2016

Update, ownership of that PR has changed a couple of times and they are asking for tests.

Also note that slim builds are not subject to this problem.

@rwaldron
Copy link
Contributor

rwaldron commented Jan 4, 2016

Thanks for the update here, we'll have to be sure to re-visit this once the pre-compiled binary modules support is merged

@rwaldron
Copy link
Contributor

rwaldron commented Apr 2, 2016

@dtex is this still problematic? By default, all build are --slim now

@johnnyman727
Copy link
Contributor

@dtex is this still an issue?

@johnnyman727
Copy link
Contributor

@dtex do you know if this is still an issue? Looks like the related issue you linked above is still open so I'm assuming the CLI is still affected...

@dtex
Copy link
Contributor Author

dtex commented Aug 25, 2016

@johnnyman727 Oof, so sorry. I wasn't getting notices on this which is weird. The problem isn't fixed in fstream but so much work has been done on the T2 deployment stuff that it is unclear to me if we are still dependent on fstream for recursively copying directories within node_modules. On the surface it appears not.

I'll test tonight.

@rwaldron
Copy link
Contributor

s unclear to me if we are still dependent on fstream for recursively copying directories within node_modules. On the surface it appears not.

It's both, depending on which path is taken. The --full flag will take the easy way out and use fstream, whereas the default path (--slim) does all the hoop jumping, directory traversing, nit-picking, roof-topping, re-rocking, crip-walking...

Looking back to the original post... I think your clever workaround isn't necessary anymore. The devDependencies will only be copied if you explicitly do --full, which I think no one should ever do, because that's nutty. Or, you can now list stuff in a .tesselignore! Anyway, I'm still curious about the symlinking in the default (--slim) deployment path

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

No branches or pull requests

3 participants