Git Product home page Git Product logo

Comments (2)

emsod avatar emsod commented on May 7, 2024

Reproduced at 6d44911:

$ bazel clean
$ bazel build //...
$ ./bazel-bin/shipshape/cli/shipshape --categories=JSHint /tmp/shipshape-test
.. findings produced for js file in dir ...
$ ./bazel-bin/shipshape/cli/shipshape --categories=JSHint /tmp/shipshape-test2
WARNING: Analyzer Driver setup failed to run: chdir /shipshape-workspace/2: no such file or directory
E0629 13:38:30.421180 24464 shipshape.go:228] Error making service call: received an error from calling run: chdir /shipshape-workspace/2: no such file or directory
$ ./bazel-bin/shipshape/cli/shipshape --categories=JSHint /tmp/shipshape-test
.. findings produced for js file in dir ...

That is, running again on a dir with the same name and a trailing number causes the failure. I can run on another directory with a number and it will work as long as it does not have the same name before the number.

docker inspect on the shipping container shows that the container is still mapped to the first directory.

The shipshape.shipping_container log has an incorrect repo value:
2015/06/29 20:42:20.148045 driver.go:97: Received analysis request for event manual, stage PRE_BUILD, categories [JSHint], repo /shipshape-workspace/2
2015/06/29 20:42:20.148196 driver.go:115: Could not change into directory /shipshape-workspace/2 from base /

The '2' is treated as a subdirectory.

The root cause is the checking of the mapped directory of the shipping container.

from shipshape.

emsod avatar emsod commented on May 7, 2024

https://phabricator-dot-shipshapecode.appspot.com/D49 improves the mapped volume check to capture the trailing number (or something else) case.

from shipshape.

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.