rattler-build
rattler-build copied to clipboard
Add `package.name` and `package.version` implicitly to `context`
When name and version are not given in the context, I think it could be good to append them to the context from the package dictionary.
I often see code like:
context:
name: "bla"
version: "1.2.3"
package:
name: ${{ name }}
version: ${{ version }}
which seems a bit double
Why would you need to use context cant you just use package.name? I mean can't we make it like that?
Related to this we might also be able to inject pkg.name and pkg.version.
Although perhaps package is still a better context name given that the key in the recipe is also package.