GithubHelp home page GithubHelp logo

Comments (7)

eed3si9n avatar eed3si9n commented on June 25, 2024

You want sbt-assembly to produce a file only when it hasn't changed since the last time it built it?
Given that it incorporates dependencies from jar etc, relying only on timestamp seems like asking for trouble. I can imagine many of the build users making the exact opposite request that assembly should keep it simple, and always build everything from scratch when the user types "assembly".

Rather than embedding this logic into sbt-assembly, I think this is something that should be solved at sbt level perhaps reusing the logic from trigged execution. /cc @harrah

from sbt-assembly.

harrah avatar harrah commented on June 25, 2024

@eed3si9n I think it is reasonable for assembly to only rebuild the assembly if any of the timestamps of the inputs have changed. This is what sbt does for making jars, for example. See FileFunction for caching basic Set[File] => Set[File] functions, for example. There isn't a good built-in caching API because I haven't come up with one I like. You can see what is used for packaging, though.

from sbt-assembly.

eed3si9n avatar eed3si9n commented on June 25, 2024

@harrah Is caching done in-memory or using files? In other words, would package/assembly across multiple runs of sbt still be cached?

from sbt-assembly.

harrah avatar harrah commented on June 25, 2024

@eed3si9n files. The cache information is stored in a file. You could imagine a special task (similar to streams) being available to give every task its own unique cache file, but you have to manually construct it right now.

from sbt-assembly.

eed3si9n avatar eed3si9n commented on June 25, 2024

released 0.8.5 with this feature.

from sbt-assembly.

teichert avatar teichert commented on June 25, 2024

Awesome!

Thanks,

--Adam

from sbt-assembly.

eed3si9n avatar eed3si9n commented on June 25, 2024

caching is optional for 0.8.6:

assemblyCacheOutput in assembly := true

from sbt-assembly.

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.