Skip to content

Commit

Permalink
also drop util.RightJoinMap
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Hall <[email protected]>
  • Loading branch information
imjasonh committed Dec 13, 2024
1 parent 1b75e72 commit 0408191
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 34 deletions.
4 changes: 3 additions & 1 deletion pkg/build/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ func (c *Compiled) compilePipeline(ctx context.Context, sm *SubstitutionMap, pip
}

if parent != nil {
with = util.RightJoinMap(parent, with)
m := maps.Clone(parent)
maps.Copy(m, with)
with = m
}

validated, err := validateWith(with, pipeline.Inputs)
Expand Down
4 changes: 3 additions & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,9 @@ func (p *Pipeline) propagateChildPipelines() {
p.Pipeline[idx].WorkDir = p.WorkDir
}

p.Pipeline[idx].Environment = util.RightJoinMap(p.Environment, p.Pipeline[idx].Environment)
m := maps.Clone(p.Environment)
maps.Copy(m, p.Pipeline[idx].Environment)
p.Pipeline[idx].Environment = = m

Check failure on line 1225 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / Build melange and add to artifact cache

expected operand, found '='

Check failure on line 1225 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / Build melange and add to artifact cache

syntax error: unexpected =, expected expression

Check failure on line 1225 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / build

expected operand, found '='

Check failure on line 1225 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / build

syntax error: unexpected =, expected expression

Check failure on line 1225 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / Build melange and add to artifact cache

expected operand, found '='

Check failure on line 1225 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / Build melange and add to artifact cache

syntax error: unexpected =, expected expression

Check failure on line 1225 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / build examples (sshfs.yaml)

expected operand, found '='

Check failure on line 1225 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / build examples (sshfs.yaml)

syntax error: unexpected =, expected expression

Check failure on line 1225 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / build examples (mbedtls.yaml)

expected operand, found '='

Check failure on line 1225 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / build examples (mbedtls.yaml)

syntax error: unexpected =, expected expression

Check failure on line 1225 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / build examples (git-checkout.yaml)

expected operand, found '='

Check failure on line 1225 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / build examples (git-checkout.yaml)

syntax error: unexpected =, expected expression

Check failure on line 1225 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / test

expected operand, found '='

Check failure on line 1225 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / build examples (minimal.yaml)

expected operand, found '='

Check failure on line 1225 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / build examples (minimal.yaml)

syntax error: unexpected =, expected expression

Check failure on line 1225 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / build examples (gnu-hello.yaml)

expected operand, found '='

Check failure on line 1225 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / build examples (gnu-hello.yaml)

syntax error: unexpected =, expected expression

Check failure on line 1225 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / bootstrap package

expected operand, found '='

Check failure on line 1225 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / bootstrap package

syntax error: unexpected =, expected expression

Check failure on line 1225 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / lint

syntax error: unexpected =, expected expression

Check failure on line 1225 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / lint

syntax error: unexpected =, expected expression

p.Pipeline[idx].propagateChildPipelines()

Check failure on line 1227 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / Build melange and add to artifact cache

syntax error: unexpected ] at end of statement

Check failure on line 1227 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / build

syntax error: unexpected ] at end of statement

Check failure on line 1227 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / Build melange and add to artifact cache

syntax error: unexpected ] at end of statement

Check failure on line 1227 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / build examples (sshfs.yaml)

syntax error: unexpected ] at end of statement

Check failure on line 1227 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / build examples (mbedtls.yaml)

syntax error: unexpected ] at end of statement

Check failure on line 1227 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / build examples (git-checkout.yaml)

syntax error: unexpected ] at end of statement

Check failure on line 1227 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / build examples (minimal.yaml)

syntax error: unexpected ] at end of statement

Check failure on line 1227 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / build examples (gnu-hello.yaml)

syntax error: unexpected ] at end of statement

Check failure on line 1227 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / bootstrap package

syntax error: unexpected ] at end of statement

Check failure on line 1227 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / lint

syntax error: unexpected ] at end of statement) (typecheck)

Check failure on line 1227 in pkg/config/config.go

View workflow job for this annotation

GitHub Actions / lint

syntax error: unexpected ] at end of statement) (typecheck)
}
Expand Down
32 changes: 0 additions & 32 deletions pkg/util/util.go

This file was deleted.

0 comments on commit 0408191

Please sign in to comment.