Skip to content

[BUG] Manifest allows components with the same name #537

@BenElgar

Description

@BenElgar

This is a manifest that is apparently valid and is successfully applied:

exo = "0.1"
components {
  container "t0" {
    image = "bash"
    command = "sleep infinity"
  }
  container "t0" {
    image = "alpine"
    command = "sleep infinity"
  }
}

In practice this seems to consistently run the bash container:

❯ dexo apply
Job URL: http://localhost:44643/#/jobs/8kjz638hb3838jwdhspg5ctqsm
applying
✓ ├─ deleting t0
✓ └─ re-creating t0

❯ docker ps
CONTAINER ID   IMAGE          COMMAND                  CREATED          STATUS          PORTS     NAMES
72b76bf1e65f   8856ae160078   "docker-entrypoint.s…"   25 seconds ago   Up 24 seconds             focused_proskuriakova

❯ docker inspect 8856ae160078 | jq '.[0].RepoTags'
[
  "bash:5",
  "bash:latest"
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions