Skip to content

Commit

Permalink
Update pkg/build/nodeimage/build.go
Browse files Browse the repository at this point in the history
Co-authored-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>
  • Loading branch information
dims and aojea authored May 21, 2024
1 parent 521164d commit 0325f31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/build/nodeimage/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ func Build(options ...Option) error {
return ctx.Build()
}

// detectBuildType detect the type of build required based on the param passed in the following order
// url: if the param is a valid http or https url
// file: if the param refers to an existing regular file
// source: if the param refers to an existing directory
// release: if the param is a semantic version expression (does this require the v preprended?
func detectBuildType(param string) string {
u, err := url.ParseRequestURI(param)
if err == nil {
Expand Down

0 comments on commit 0325f31

Please sign in to comment.