Skip to content

Commit

Permalink
Fix/consolidate deprecation handling (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
agouin authored Feb 3, 2023
1 parent 0d8cf46 commit 3d464c2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,18 +122,12 @@ func rawDockerfile(
case DockerfileTypeImported:
return dockerfileEmbeddedOrLocal("imported/Dockerfile", dockerfile.Imported)

case DockerfileTypeRust:
// DEPRECATED
fallthrough
case DockerfileTypeCargo:
if useBuildKit {
return dockerfileEmbeddedOrLocal("cargo/Dockerfile", dockerfile.Cargo)
}
return dockerfileEmbeddedOrLocal("cargo/native.Dockerfile", dockerfile.CargoNative)

case DockerfileTypeGo:
// DEPRECATED
fallthrough
case DockerfileTypeCosmos:
if local {
// local builds always use embedded Dockerfile.
Expand Down Expand Up @@ -242,6 +236,7 @@ func (h *HeighlinerBuilder) buildChainNodeDockerImage(
for _, rep := range deprecationReplacements {
if dockerfile == rep[0] {
fmt.Printf("'dockerfile' value of '%s' is deprecated, please use '%s' instead\n", rep[0], rep[1])
dockerfile = rep[1]
}
}
// END DEPRECATION HANDLING
Expand Down

0 comments on commit 3d464c2

Please sign in to comment.