build(deps): bump github.com/openshift/imagebuilder

Bumps [github.com/openshift/imagebuilder](https://github.com/openshift/imagebuilder) from 1.2.4-0.20230207193036-6e08c897da73 to 1.2.4.
- [Release notes](https://github.com/openshift/imagebuilder/releases)
- [Commits](https://github.com/openshift/imagebuilder/commits/v1.2.4)

---
updated-dependencies:
- dependency-name: github.com/openshift/imagebuilder
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot]
2023-03-16 16:16:48 +00:00
committed by GitHub
parent 931cd1d7da
commit 1ea62f32f0
20 changed files with 72 additions and 252 deletions

View File

@ -4,6 +4,7 @@ package parser
import (
"bufio"
"bytes"
"errors"
"fmt"
"io"
"regexp"
@ -12,9 +13,9 @@ import (
"strings"
"unicode"
"github.com/openshift/imagebuilder/dockerfile/command"
sRegexp "github.com/containers/storage/pkg/regexp"
"github.com/containers/storage/pkg/system"
"github.com/pkg/errors"
"github.com/openshift/imagebuilder/dockerfile/command"
)
// Node is a structure used to represent a parse tree.
@ -28,7 +29,6 @@ import (
// This data structure is frankly pretty lousy for handling complex languages,
// but lucky for us the Dockerfile isn't very complicated. This structure
// works a little more effectively than a "proper" parse tree for our needs.
//
type Node struct {
Value string // actual content
Next *Node // the next item in the current sexp
@ -82,10 +82,10 @@ func (node *Node) AddChild(child *Node, startLine, endLine int) {
var (
dispatch map[string]func(string, *Directive) (*Node, map[string]bool, error)
tokenWhitespace = regexp.MustCompile(`[\t\v\f\r ]+`)
tokenEscapeCommand = regexp.MustCompile(`^#[ \t]*escape[ \t]*=[ \t]*(?P<escapechar>.).*$`)
tokenPlatformCommand = regexp.MustCompile(`^#[ \t]*platform[ \t]*=[ \t]*(?P<platform>.*)$`)
tokenComment = regexp.MustCompile(`^#.*$`)
tokenWhitespace = sRegexp.Delayed(`[\t\v\f\r ]+`)
tokenEscapeCommand = sRegexp.Delayed(`^#[ \t]*escape[ \t]*=[ \t]*(?P<escapechar>.).*$`)
tokenPlatformCommand = sRegexp.Delayed(`^#[ \t]*platform[ \t]*=[ \t]*(?P<platform>.*)$`)
tokenComment = sRegexp.Delayed(`^#.*$`)
)
// DefaultEscapeToken is the default escape token