Coder Social home page Coder Social logo

Comments (4)

alexec avatar alexec commented on August 17, 2024

This seems like a really good idea. File hashes will be expensive to compute if there are many files, so we could use the modtime. I think this is what Make does.

from kit.

alexec avatar alexec commented on August 17, 2024

Note, this is only needed when starting up. The way that Make does this is that it compares the built file timestamp with the source file. If the built file is newer, then it is up-to-date, older then rebuild is needed.

from kit.

alexec avatar alexec commented on August 17, 2024

What about this syntax

# we watch these files
watch: [foo]
# when the task runs to completion and exit code 0, touch this file
touch: bar

from kit.

agilgur5 avatar agilgur5 commented on August 17, 2024

so we could use the modtime. I think this is what Make does.

Yes that's what I wrote above. Although modtime is imperfect as it will trigger when you save a file and there were no changes.

Note, this is only needed when starting up.

Does watch already check for this condition?

What about this syntax

I would think that if there's a watch, there's no need for another field, as those are the ones you'd check the timestamp or checksum against.

For tasks without outputs though, that might be useful

from kit.

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.