Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fix(build): virtual merge commits and inconsistent build cache
An inconsistency in the werf/actions or github-actions lead to invalid --virtual-merge-into-commit param passed into werf. It leads to creating inconsistent stage in the repo by the werf. Solution: remove --virtual-merge-into-commit and --virtual-merge-from-commit params and detect from/into commits by itself reading virtual-merge commit metadata from the git.
- Loading branch information
Showing
with
410 additions
and 85 deletions.
- +5 −1 Makefile
- +0 −2 cmd/werf/build/main.go
- +1 −3 cmd/werf/bundle/export/export.go
- +1 −3 cmd/werf/bundle/publish/publish.go
- +1 −13 cmd/werf/common/common.go
- +1 −3 cmd/werf/common/conveyor_options.go
- +0 −2 cmd/werf/compose/main.go
- +0 −2 cmd/werf/converge/converge.go
- +0 −2 cmd/werf/export/export.go
- +0 −2 cmd/werf/helm/get_autogenerated_values.go
- +1 −3 cmd/werf/render/render.go
- +0 −2 cmd/werf/run/run.go
- +0 −2 cmd/werf/stage/image/main.go
- +2 −1 go.mod
- +5 −0 go.sum
- +8 −1 pkg/build/build_phase.go
- +2 −2 pkg/build/conveyor.go
- +1 −3 pkg/build/stage/conveyor.go
- +1 −1 pkg/build/stage/git_archive.go
- +25 −37 pkg/build/stage/git_mapping.go
- +318 −0 pkg/build/stage/git_mapping_test.go
- +13 −0 pkg/build/stage/stage_suite_test.go
- +1 −0 pkg/git_repo/git_repo.go
- +4 −0 pkg/git_repo/local.go
- +4 −0 pkg/git_repo/remote.go
- +16 −0 pkg/git_repo/virtual_merge.go
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -147,8 +147,6 @@ func NewCmd() *cobra.Command { | ||
common.SetupDryRun(&commonCmdData, cmd) | ||
|
||
common.SetupVirtualMerge(&commonCmdData, cmd) | ||
|
||
common.SetupPlatform(&commonCmdData, cmd) | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -83,8 +83,6 @@ func NewCmd() *cobra.Command { | ||
common.SetupKubeContext(&commonCmdData, cmd) | ||
|
||
common.SetupVirtualMerge(&commonCmdData, cmd) | ||
|
||
common.SetupPlatform(&commonCmdData, cmd) | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -29,7 +29,5 @@ type Conveyor interface { | ||
} | ||
|
||
type VirtualMergeOptions struct { | ||
VirtualMerge bool | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.