Some way to use target name inside definition
Open
Nobody has claimed this yet.
area/bake
- Dominant language
- Go
- Stars
- 4.5k
- Forks
- 682
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 29
Description
This is something I end up doing a lot:
target "foo" {
tags = defaultTagsFor("foo")
}
it'd be useful to have some scoped variable here representing the target's name
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start from the HCL target example and inspect how buildx represents target definitions and scoped values. Determine how a target's name could be exposed inside its definition, then verify that the requested name is available in the relevant bake behavior; the payload names no specific files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100