Skip to content

feature(main): fix already installed buildah #1968

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 27, 2022

Conversation

cuisongliu
Copy link
Collaborator

Signed-off-by: cuisongliu [email protected]

@cuisongliu cuisongliu force-pushed the buildah_check branch 2 times, most recently from 52cf68a to 1e43845 Compare October 27, 2022 04:48
@codecov
Copy link

codecov bot commented Oct 27, 2022

Codecov Report

Base: 67.98% // Head: 67.98% // No change to project coverage 👍

Coverage data is based on head (7be3afc) compared to base (3042603).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1968   +/-   ##
=======================================
  Coverage   67.98%   67.98%           
=======================================
  Files           6        6           
  Lines         506      506           
=======================================
  Hits          344      344           
  Misses        135      135           
  Partials       27       27           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

if onceBuildahVersion.GitCommit == "bc5080cc" {
return true, nil
}
return false, errors.New("system buildah is not sealos buildah,please uninstall buildah retry it")
Copy link
Member

Choose a reason for hiding this comment

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

What means "system buildah is not sealos buildah...."

@fanux fanux changed the title feature(main): fix buildah not sealos buildah error feature(main): fix already install buildah Oct 27, 2022
@fanux
Copy link
Member

fanux commented Oct 27, 2022

What can cause problems if buildah is already installed?

@cuisongliu
Copy link
Collaborator Author

What can cause problems if buildah is already installed?

It may cause the sealos build to be unsuccessful, which is not the same version as the buildah we use, and the parameters are different.

@cuisongliu
Copy link
Collaborator Author

fix #1756 , delete buildah check

@zzjin zzjin changed the title feature(main): fix already install buildah feature(main): fix already installed buildah Oct 27, 2022
@cuisongliu cuisongliu merged commit 7b44ce7 into labring:main Oct 27, 2022
@cuisongliu cuisongliu deleted the buildah_check branch October 28, 2022 00:46
if onceBuildahVersion.GitCommit == "bc5080cc" {
return true, nil
}
return false, errors.New("System's buildah is not match sealos buildah requirements, please uninstall system's buildah, and retry")
Copy link
Member

Choose a reason for hiding this comment

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

But how to fix this issue, user don't know the gitcommit ID,how to reinstall.

@fanux
Copy link
Member

fanux commented Oct 28, 2022

  1. Users don't know which commitID to download 2. Why other versions of buildah don't work, because our integrated SDK is not new enough, is there a way to be compatible with other versions of buildah 3. The fundamental solution is to not rely on the buildah binary at all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants