Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

[5.5.x] mark intermediate packages correctly #775

Merged
merged 3 commits into from Oct 10, 2019

Conversation

a-palchikov
Copy link
Contributor

@a-palchikov a-palchikov commented Oct 8, 2019

Use the actual runtime application for collecting dependencies instead of wrapping it into a host application manifest to avoid marking unrelated dependencies as related to a specific intermediate step.

Fixes https://github.com/gravitational/gravity.e/issues/4231, #626.

return trace.NotFound("runtime version %v not found", runtimeVersion)
}
return trace.Wrap(err)
return trace.Wrap(err, "failed to sync packages for runtime version %v", runtimeVersion)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also fixes an issue with shadowing package errors from the user using tele build.

@@ -513,20 +508,21 @@ func (b *Builder) collectUpgradeDependencies() (result *libapp.Dependencies, err
return nil, trace.Wrap(err)
}
result = &libapp.Dependencies{}
for _, version := range b.UpgradeVia {
for _, runtimeVersion := range b.UpgradeVia {
app, err := apps.GetApp(loc.Runtime.WithVersion(runtimeVersion))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cannot use the host application to avoid pulling in and marking unrelated packages are part of this (runtimeVersion) intermediate step.

wrapping it into a host application manifest to avoid marking unrelated
dependencies as related to a specific intermediate step.
…mediate dependencies. Validate the list of packages for an intermediate step.
@a-palchikov a-palchikov force-pushed the dmitri/5.5.x/intermediate-update-build branch from 0a86782 to 7724f2c Compare October 9, 2019 10:38
@a-palchikov a-palchikov merged commit ddf65fa into version/5.5.x Oct 10, 2019
@a-palchikov a-palchikov deleted the dmitri/5.5.x/intermediate-update-build branch October 10, 2019 09:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants