Git Product home page Git Product logo

Comments (6)

cheld avatar cheld commented on May 13, 2024

Unit recently, when executing gulp serve:prod another non-obvious error can occur in case environment variables are not passed to root. However, in latest version we do check GOPATH variable and the execution will exit. So, a user will most likely realize his wrong action. Anyway, in case it is simple, please add another check:

cheld@estheld:~/devel/dashboard$ sudo env "GOPATH=$GOPATH" gulp serve:prod
[09:08:27] Requiring external module babel-core/register
[09:08:29] Using gulpfile ~/devel/dashboard/gulpfile.babel.js
[09:08:29] Starting 'assets'...
[09:08:29] Starting 'angular-templates'...
[09:08:29] Starting 'styles:prod'...
[09:08:29] Starting 'package-backend-source'...
[09:08:29] Starting 'kill-backend'...
[09:08:29] Finished 'kill-backend' after 47 μs
[09:08:29] Finished 'assets' after 103 ms
[09:08:29] Finished 'styles:prod' after 126 ms
[09:08:29] Finished 'package-backend-source' after 131 ms
[09:08:29] Starting 'backend:prod'...
execvp(): No such file or directory

events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:988:11)
at Process.ChildProcess._handle.onexit (child_process.js:779:34)

from dashboard.

bryk avatar bryk commented on May 13, 2024

Yes, this would be extremely helpful. Most people don't realize they need godep for a frontend project.

Another idea that struck me is that we could stop requiring godep and download it during a build step, e.g.,

go get godep
$GOPATH/bin/godep go <commad> 

This could actually work.

from dashboard.

taimir avatar taimir commented on May 13, 2024

I am on it first thing tomorrow morning :) (Moving in to my new apartment right now)

from dashboard.

taimir avatar taimir commented on May 13, 2024

+1 at @bryk, the download is usually quite fast

from dashboard.

cheld avatar cheld commented on May 13, 2024

Please consider 'go clean', because it might remove godep again. This might be non-intentional.

from dashboard.

cheld avatar cheld commented on May 13, 2024

Fixed. Environment variables are checked. In addition godep is downloaded by npm and does not require user setup any longer

from dashboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.