rattler-build icon indicating copy to clipboard operation
rattler-build copied to clipboard

Add `package.name` and `package.version` implicitly to `context`

Open wolfv opened this issue 2 years ago • 3 comments

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

wolfv avatar Oct 18 '23 06:10 wolfv

Why would you need to use context cant you just use package.name? I mean can't we make it like that?

ruben-arts avatar Oct 18 '23 07:10 ruben-arts

Related to this we might also be able to inject pkg.name and pkg.version.

baszalmstra avatar Nov 17 '23 13:11 baszalmstra

Although perhaps package is still a better context name given that the key in the recipe is also package.

baszalmstra avatar Nov 17 '23 13:11 baszalmstra