Giter Site home page Giter Site logo

monohash's People

Contributors

melezov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

fossabot

monohash's Issues

Make blacklist .gitignore compatible

There is no need to introduce yet another syntax when people are already aware of .gitignore flavor

This is a breaking change that will push the version to 1.x.x

Monohash fails to die if hashing plan file contains non-existing file/folder

If monohash plan file contains a file or a folder that does not exist on the disk it fails to fail, looping eternally in agony.

Repro steps:

Folder structure:

~/repro/
  + monohash.jar
  + .monohash.plan

Hash plan:

@./

# this guy causes monohash to eternally loop in agony
./some_nonexisting_file

Repro command:

# cd into ~/repro/
java -jar monohash.jar .monohash.plan

Expected:

  • monohash should fail immediately

What happens:

java -jar monohash.jar .monohash.plan
[info] Using [hash plan file]: <path/to/.monohash.plan> ...
[error] Worker #7 experienced an exception, shutting down other workers ...
[info] Hashed 0 files with a total of 0 bytes in 1.004 sec (average speed: 0 files/sec, 0.0 MB/sec) [stopping early due to errors]
[info] Hashed 0 files with a total of 0 bytes in 2.006 sec (average speed: 0 files/sec, 0.0 MB/sec) [stopping early due to errors]
[info] Hashed 0 files with a total of 0 bytes in 3.002 sec (average speed: 0 files/sec, 0.0 MB/sec) [stopping early due to errors]
[info] Hashed 0 files with a total of 0 bytes in 4.002 sec (average speed: 0 files/sec, 0.0 MB/sec) [stopping early due to errors]
[info] Hashed 0 files with a total of 0 bytes in 5.002 sec (average speed: 0 files/sec, 0.0 MB/sec) [stopping early due to errors]
[info] Hashed 0 files with a total of 0 bytes in 6.002 sec (average speed: 0 files/sec, 0.0 MB/sec) [stopping early due to errors]
[info] Hashed 0 files with a total of 0 bytes in 7.002 sec (average speed: 0 files/sec, 0.0 MB/sec) [stopping early due to errors]
...
onwards to infinity

Support include directives

If a repo has a base set of directories/files that should be included in every hash plan, it would be great to be able to specify it once and pull it into another hash plan via an 'include directive'.

E.g. <include ../build/shared.monohash>

Allowing nested chaining of includes should greatly reduce repetition
Con: Reduces readability. User friendly logging during parsing should help with that.

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.