Closed wolfv closed 1 month ago
Great point! I think exclamation mark doesn't work in YAML, but tilde is fine.
Are there other special locations, e.g. for R packages?
I am also wondering how we can test that some files were not added. It is common to have
tests/
top-level packages accidentally packaged, and we could have something like:package_contents: files: - ~tests # or "!tests"
Maybe:
package_contents:
includes:
- mamba/api/
excludes:
- mamba/tests/
@dhirschfeld that is also nice, but then it becomes harder to negate the existence of a given shared library, include file, etc. I lean towards ~
as prefix for negation.
@JeanChristopheMorinPerso the RPM spec that you linked also has this:
%{_includedir}/yaml-cpp/
So it seems that it similarly has a "glob" syntax to take an entire directory. But thanks for the pointer, I didn't know about that!
Some things that came up yesterday in the mamba meeting:
static_libs
) to find the existence (or negate the existence!) of static libraries in the package?bin
and the comment may be wrongdll
and lib
file exist as a pair@JeanChristopheMorinPerso now that I think about it it could be a great idea to have a strict_mode: true / false
that means that all files in the package have to be matched by any of the rules.
Maybe strict_mode
should be true
by default ... :)
strict_mode
sounds cool!
for windows dlls we should do a strong test (e.g. make sure that both
dll
andlib
file exist as a pair
In an ideal world, this would also check that the .lib
file is actually an import library, and not a static library with the same name. 😇
@h-vetinari I just chatted with ChatGPT and looks like we can do that with Goblin and some inspection of the files.
@JeanChristopheMorinPerso the RPM spec that you linked also has this:
%{_includedir}/yaml-cpp/
So it seems that it similarly has a "glob" syntax to take an entire directory. But thanks for the pointer, I didn't know about that!
They support a glob-style match, but I don't know if %{_includedir}/yaml-cpp/
necessarily does a recursive include or not.
Closing in favor of #84.
I like this a lot! Left a few comments.
I am also wondering how we can test that some files were not added. It is common to have
tests/
top-level packages accidentally packaged, and we could have something like: