Comments (4)
I'll take a look - @andrew-farries I'll reach out it I need help reproducing this ๐งก
from leeway.
@andrew-farries and I had a look - Leeway can't find mocha
because it's not part of the package.json used by the Leeway package. The reason yarn test
works if you invoke it directly from the folder is because mocha
is present in the top-level node_modules
so it's detected and used by yarn
- in the Leeway build the top-level node_modules isn't available (as it should be).
The solution is to add mocha
as a direct dependency to the package.
@andrew-farries I'm closing this, but I'm happy debugging further tomorrow if needed (we didn't get the tests running - when we added mocha to the package it tried to run the tests build failed for another reason, likely due to other missing dependencies or version-mismatch with the version of mocha we selected)
from leeway.
The behaviour in the sample case works as designed.
Because there's an install
entry in the commands section, leeway executes that command instead of yarn install
. Subsequently the dev packages are not installed. Removing the install
command fixes the build.
from leeway.
Thanks. The example repo wasn't a good reproduction of the problem that exists in the Gitpod repo in that case.
In Gitpod's ws-manager-api/typescript
component the BUILD.yaml
doesn't override the install
entry but leeway
is unable to run yarn test
when dontTest
is set to false
:
The error is the same (can't find mocha
), but in that case it looks as though the dev packages should be installed correctly.
from leeway.
Related Issues (20)
- presence of dynamic packages leads to linking error during `leeway exec` HOT 3
- Output download log only when using --debug command
- Provide tab-completion for `leeway run`
- sha256Hash fails to hash symlink to directory HOT 1
- Document ephemeral packages HOT 1
- Retire ephemeral packages in favour of scripts
- Remove deprecated "typescript" package type
- Add vet warning when including `node_modules` in the source list
- Parallelize leeway vet
- Leeway vet doesn't return a non-zero exit code on failures
- Improve testability
- Decide on future of graphview
- golangci-lint is not part of the environment manifest
- Allow running multiple Leeway scripts in parallel HOT 3
- Packages build because they're deps of a script don't get uploaded to the remote cache
- Cannot parse Git status when files are renamed
- Extend `vet` so that it produces a warning if any .gitignore files are in the srcs input to a package.
- Implement leeway remote caching for S3
- Allow cross architecture docker builds with docker buildx HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leeway.