GithubHelp home page GithubHelp logo

Comments (2)

gennadigennadigennadi avatar gennadigennadigennadi commented on July 22, 2024

#1078
There is an issue already for „cache-file“ via config, but to implement it correctly it requires some refactoring, see the open draft PR.

Deptrac will not create the target directory, that’s correct. I would add a before_script section in the CI and do „mkdir -p path“.

You could also open a PR and implement it, the baseline directory will be created for example.

from deptrac.

alexander-schranz avatar alexander-schranz commented on July 22, 2024

Thx for the fast reponse.

I would add a before_script section in the CI and do „mkdir -p path“.

That works only for the CI, developers running it locally will still get the error, so we would require to configure a before_script then in the deptrac.yaml else devs would run into problems. Think it would be easier then todo mkdir in PHP if the dir does not yet exists.

You could also open a PR and implement it, the baseline directory will be created for example.

If you are fine with it I would add there similar logic as for the baseline:

if (!is_dir($dirname) && mkdir($dirname.'/', 0777, true) && !is_dir($dirname)) {

#1078
There is an issue already for „cache-file“ via config, but to implement it correctly it requires some refactoring, see the open draft PR.

Thx for linking the issue 👍

from deptrac.

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.