cirocosta / estaleiro

building container images with bill of materials
Apache License 2.0
2 stars 0 forks source link

cmd: detect unused tarballs / files / steps #10

Open cirocosta opened 5 years ago

cirocosta commented 5 years ago

e.g.:

image "a" {
  base_image {}
}

tarball "unused" {}

should let the user known that unused is "dead code".

The same should be true for specific files too:

image "a" {
  base_image {}
  file "dsd" {
    from_tarball "unused" { path = "a"}
  }
}

tarball "unused" {
  source_file "a" {}
  source_file "b" {}
}

should let the user know that b is never consumed.