Ensure init generates /-delimted paths #5177
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes: #5074
Description
Ensure paths are written using forward slashes during
init
. Adds a test for Windows.The choice of where to maintain and use the workspace is a bit confusing.
ArtifactConfig
to capture a detected artifact (e.g., Jib).ArtifactConfig
implements aninitializers/build.InitBuilder
interface. TheArtifactType()
method generates a config schema'sArtifactType
with the appropriate per- builder information. ThisArtifactType
is contained with the artifact's workspace within the config schema'sArtifact
object.For now I pass the workspace into the per-builder
ArtifactConfig.ArtifactType(workspace)
functions. It would seem to make sense for the workspace to be passed around within the per-builderArtifactConfig
objects, except that they don't actually generate theArtifact
object. So we'd still need to swizzle the workspace when creating the correspondingArtifact
objects.But it might be worth having the
ArtifactConfig
objects be responsible for generating theArtifact
object so that they could populate it with sync rules?