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

dev/dev-sourcegraph-server.sh fails with 'Command "build" not found' #3243

Closed
ijt opened this issue Apr 5, 2019 · 1 comment
Closed

dev/dev-sourcegraph-server.sh fails with 'Command "build" not found' #3243

ijt opened this issue Apr 5, 2019 · 1 comment
Assignees

Comments

@ijt
Copy link
Contributor

ijt commented Apr 5, 2019

dev/dev-sourcegraph-server.sh runs ./cmd/frontend/pre-build.sh, which fails like this

++ dirname ./cmd/frontend/pre-build.sh
+ cd ./cmd/frontend/../..
+ echo '--- yarn'
--- yarn
+ [[ -z '' ]]
+ yarn
yarn install v1.15.2
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
$ gulp generate && yarn --cwd shared -s run tslint:build-rules
[04:04:14] Requiring external module ts-node/register
Using mode development
[04:04:15] Using gulpfile ~/go/src/github.com/sourcegraph/sourcegraph/gulpfile.ts
[04:04:15] Starting 'generate'...
[04:04:15] Starting 'schema'...
[04:04:15] Starting 'graphQLTypes'...
[04:04:17] Finished 'schema' after 1.44 s
[04:04:17] Finished 'graphQLTypes' after 1.44 s
[04:04:17] Finished 'generate' after 1.44 s
Done in 9.28s.
+ echo '--- yarn run build'
--- yarn run build
+ NODE_ENV=production
+ DISABLE_TYPECHECKING=true
+ yarn run build
yarn run v1.15.2
error Command "build" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Apparently it needs to be running within the web subdirectory.

@ijt ijt self-assigned this Apr 5, 2019
@ijt
Copy link
Contributor Author

ijt commented Apr 5, 2019

cc @sqs

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

1 participant