Added simple recipe for 'onqtam/doctest'.#14
Added simple recipe for 'onqtam/doctest'.#14thoughton wants to merge 1 commit intopfultz2:masterfrom
Conversation
A "C++98/C++11 single-header testing framework for unit tests and TDD".
| @@ -0,0 +1,2 @@ | |||
| onqtam/doctest@master | |||
There was a problem hiding this comment.
Is there a way to use a version tag instead of always pulling from master?
There was a problem hiding this comment.
Hmmm, yes the repo does seem to have tags for each of its releases, so I guess those could be used instead.
Is it generally preferred for recipes not to pull from master?
There was a problem hiding this comment.
Is it generally preferred for recipes not to pull from master?
Yes, as it helps keep the recipes reproducible.
There was a problem hiding this comment.
Ahha, I see. Yes that makes sense.
Does that also imply then, that if two different users both wanted reproducible setups, but using two different versions of a library, then we might want two different recipes for that same library (eg. with the version number in the recipe name perhaps) in cget?
Apologies for all the questions, but I'm genuinely interested in finding out what the ideal cget workflow is.
There was a problem hiding this comment.
Cget doesn't really support installing two different versions in the same cget directory(as two packages are not allowed to install the same file).
You can also add multiple versions of recipe under the same directory, such as onqtam/doctest/1.0/package.txt and onqtam/doctest/2.0/package.txt and then you can refer to it as onqtam/doctest@1.0 or onqtam/doctest@2.0. Both packages are given the same name as onqtam/doctest. Currently, there is no SAT solving, just first-come-first-serve(ie cget just checks if the package is already installed, and then installs). So to fix a correct version, the user should install it first or use a set of recipes that are know to work together.
Of course, this recipe is only useful for picking a usable version. So I dont see the need to add multiple recipes as the user can already do onqtam/doctest@1.0 to pick a certain tag and install.
A "C++98/C++11 single-header testing framework for unit tests and TDD".