add special treatment of @develop version#1190
Conversation
|
To run all tests manually, simply run: To run a specific test only, run: |
efc4675 to
dc86ac4
Compare
|
|
|
Look at the |
|
I like it, and it seems logically consistent. The only problem I see is that having |
can one add somewhere a special treatment to ignore
what do you mean? |
That would work also I guess.
The opposite : |
but this is exactly the opposite of what i try to achieve. Say in |
|
I agree that dev is technically the latest and greatest version and should be considered greater than any other version. But Spack definitely shouldn't default to dev for security reasons, as @citibeth has mentioned many times. I think we should give dev special treatment when it comes to deciding which version to install by default. |
that I agree 100%. My main goal here is easy writing of |
|
@tgamblin thanks for the link. I found what was missing. |
dc86ac4 to
30ea628
Compare
any hints where should i look at to add this? |
|
@davydden I think the relevant code is in |
|
@davydden Second guess : |
|
I would vote to call this |
30ea628 to
79cdb8c
Compare
|
@alalazo @adamjstewart @citibeth @tgamblin made it working to ignore |
79cdb8c to
69a8003
Compare
|
Does |
|
I have packages with a On Thu, Jul 7, 2016 at 5:22 PM, Adam J. Stewart [email protected]
|
yes, if I temporary hack |
|
Let's go with develop then. |
69a8003 to
12659d8
Compare
|
ok. i squashed into a single commit. From my side -- ready to merge if there are no further comments. |
|
Oh, just thought of a good corner case. What if there is only a single version and it is develop? You should change the if-statement to: if ver(valid_versions[0]) == ver('develop') and len(valid_version) > 1:
spec.versions = ver([valid_versions[1]])This could also happen when only develop meets some other kind of restraint, not just when develop is the only version. And it will prevent unintuitive index-out-of-bounds errors. |
12659d8 to
f08babe
Compare
|
@adamjstewart thanks, indeed. Fixed it. |
|
@davydden Sorry, that actually generates an index-out-of-bounds message too. I updated my comment. |
f08babe to
3bb4c28
Compare
|
@adamjstewart np. Fixed. |
Good catch! This will be the common case when you're developing a new |
|
@tgamblin this is ready for review. |
3bb4c28 to
b29d5e6
Compare
|
@davydden: I like it. I do think this needs some docs though, and it should probably be included in the section on fetching from VCS, as a "recommended" way to install from a branch like master. Can you add docs? I'm not completely happy with the way that Spack handles provenance for VCS versions at the moment (though it's kind of my fault). The identifiers are made up by the packager, and they mean nothing once installed. I would like it a lot better if installing |
@tgamblin i added the docs. Let me know if you would like something changed. |
introduce special treatment for
@devversion so that it enables, for example,instead of
More importantly, with this patch the following works
which i was not able to make work without.
fixes #874
p.s. i don't know how to run tests manually, let's see if they fail on Travis...
@alalazo @adamjstewart @tgamblin let me know if you think something else needs to be modified in
version.py.