Comments (1)
yeah, well spotted. When the file timestamp changes, biomake should recompute the hash (md5_hash
) but not ignore the validity condition (md5_valid
). The two are stored in the same file, which is possibly a poor design decision, but the rationale is to avoid cluttering the filesystem. See e.g. here for examples
For some reason the code had decided not to read that file when timestamps were stale, which kind of defeats the whole purpose of an MD5 checksum. What it should do is read the file (to load the validity condition) but then recompute the hash.
Really, the root problem was that there was no test! Crafting a test for this was a little devious since it requires calling biomake twice and subtly altering the recipe the second time (so test engine can tell if it's been re-run)
The MD5 tests are all a little devious/hacky, actually, but nothing compared to the lengths we'd have to go to test the various error reporting options ;) a job which i have so far skirted (so e.g. there is no test for #31)
from biomake.
Related Issues (20)
- Welcome message should draw version number from pack.pl
- SnakeMake parser HOT 6
- Add biomake to bioconda
- More Prolog recipes for extending rules
- Biomake macro for MD5 hash of a file
- Mirror S3 bucket using aws s3 sync
- Consider eliminating the -l option HOT 1
- Refactor the README into readthedocs
- Question about job submissions on PBS using biomake HOT 2
- Problem with swi-prolog 8? HOT 3
- Dependency paths longer than 2 nodes unsupported? HOT 3
- Build failure should result in the deletion of unbuilt targets
- Multiple outputs - correct pattern HOT 1
- Target-specific variables unsupported or broken HOT 3
- If a deep dependency fails with "no way to make", only a direct dependency of the main goal is mentioned
- Silently unsupported GNU Make feature: Rules with Grouped Targets
- Cannot specify multiple targets using a variable
- Meta issue: how much hope should I place in biomake, realistically? HOT 3
- Recent SWI Prolog breaks DCG test?
- Incorrect expansion of $(foreach...) variable inside nested $(addsuffix...)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biomake.