Skip to content
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

feat: retry installing a package when it failed to install the package due to file already exists error #512

Merged
merged 1 commit into from
Jan 7, 2022

Conversation

suzuki-shunsuke
Copy link
Member

@suzuki-shunsuke suzuki-shunsuke commented Jan 7, 2022

Close #511

registries:
- type: standard
  ref: v0.13.1

packages:
- name: cli/cli@v2.0.0
- name: cli/cli@v2.0.0
- name: cli/cli@v2.0.0
- name: cli/cli@v2.0.0
- name: cli/cli@v2.0.0

AS IS

aqua i failed.

$ aqua -v
aqua version 0.8.13 (f99fbccd103127a3eab411c58af506ef18fb4290)

$ aqua i
INFO[0000] download and unarchive the package            aqua_version=0.8.13 package_name=cli/cli package_version=v2.0.0 program=aqua registry=standard
INFO[0000] download and unarchive the package            aqua_version=0.8.13 package_name=cli/cli package_version=v2.0.0 program=aqua registry=standard
INFO[0000] download and unarchive the package            aqua_version=0.8.13 package_name=cli/cli package_version=v2.0.0 program=aqua registry=standard
INFO[0000] download and unarchive the package            aqua_version=0.8.13 package_name=cli/cli package_version=v2.0.0 program=aqua registry=standard
INFO[0000] download and unarchive the package            aqua_version=0.8.13 package_name=cli/cli package_version=v2.0.0 program=aqua registry=standard
ERRO[0003] install the package                           aqua_version=0.8.13 error="reading file in tar archive: file already exists: /Users/shunsuke-suzuki/.aqua/pkgs/github_release/github.com/cli/cli/v2.0.0/gh_2.0.0_macOS_amd64.tar.gz/gh_2.0.0_macOS_amd64/LICENSE" package_name=cli/cli package_version=v2.0.0 program=aqua registry=standard
ERRO[0003] install the package                           aqua_version=0.8.13 error="reading file in tar archive: file already exists: /Users/shunsuke-suzuki/.aqua/pkgs/github_release/github.com/cli/cli/v2.0.0/gh_2.0.0_macOS_amd64.tar.gz/gh_2.0.0_macOS_amd64/LICENSE" package_name=cli/cli package_version=v2.0.0 program=aqua registry=standard
ERRO[0003] install the package                           aqua_version=0.8.13 error="reading file in tar archive: file already exists: /Users/shunsuke-suzuki/.aqua/pkgs/github_release/github.com/cli/cli/v2.0.0/gh_2.0.0_macOS_amd64.tar.gz/gh_2.0.0_macOS_amd64/LICENSE" package_name=cli/cli package_version=v2.0.0 program=aqua registry=standard
ERRO[0003] install the package                           aqua_version=0.8.13 error="reading file in tar archive: file already exists: /Users/shunsuke-suzuki/.aqua/pkgs/github_release/github.com/cli/cli/v2.0.0/gh_2.0.0_macOS_amd64.tar.gz/gh_2.0.0_macOS_amd64/LICENSE" package_name=cli/cli package_version=v2.0.0 program=aqua registry=standard
FATA[0003] aqua failed                                   aqua_version=0.8.13 error="it failed to install some packages" program=aqua

TO BE

$ aqua i
INFO[0000] download and unarchive the package            aqua_version= package_name=cli/cli package_version=v2.0.0 program=aqua registry=standard
INFO[0000] download and unarchive the package            aqua_version= package_name=cli/cli package_version=v2.0.0 program=aqua registry=standard
INFO[0000] download and unarchive the package            aqua_version= package_name=cli/cli package_version=v2.0.0 program=aqua registry=standard
INFO[0000] download and unarchive the package            aqua_version= package_name=cli/cli package_version=v2.0.0 program=aqua registry=standard
INFO[0000] download and unarchive the package            aqua_version= package_name=cli/cli package_version=v2.0.0 program=aqua registry=standard
INFO[0002] retry installing the package                  aqua_version= error="reading file in tar archive: file already exists: /Users/shunsuke-suzuki/.aqua/pkgs/github_release/github.com/cli/cli/v2.0.0/gh_2.0.0_macOS_amd64.tar.gz/gh_2.0.0_macOS_amd64/LICENSE" package_name=cli/cli package_version=v2.0.0 program=aqua registry=standard retry_count=1
INFO[0002] retry installing the package                  aqua_version= error="reading file in tar archive: file already exists: /Users/shunsuke-suzuki/.aqua/pkgs/github_release/github.com/cli/cli/v2.0.0/gh_2.0.0_macOS_amd64.tar.gz/gh_2.0.0_macOS_amd64/LICENSE" package_name=cli/cli package_version=v2.0.0 program=aqua registry=standard retry_count=1
INFO[0003] retry installing the package                  aqua_version= error="reading file in tar archive: file already exists: /Users/shunsuke-suzuki/.aqua/pkgs/github_release/github.com/cli/cli/v2.0.0/gh_2.0.0_macOS_amd64.tar.gz/gh_2.0.0_macOS_amd64/LICENSE" package_name=cli/cli package_version=v2.0.0 program=aqua registry=standard retry_count=1
INFO[0003] retry installing the package                  aqua_version= error="reading file in tar archive: file already exists: /Users/shunsuke-suzuki/.aqua/pkgs/github_release/github.com/cli/cli/v2.0.0/gh_2.0.0_macOS_amd64.tar.gz/gh_2.0.0_macOS_amd64/LICENSE" package_name=cli/cli package_version=v2.0.0 program=aqua registry=standard retry_count=1

@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label Jan 7, 2022
@suzuki-shunsuke suzuki-shunsuke added this to the v0.8.14 milestone Jan 7, 2022
@suzuki-shunsuke suzuki-shunsuke merged commit 4eab79b into main Jan 7, 2022
@suzuki-shunsuke suzuki-shunsuke deleted the feat/support-retrying-install-package branch January 7, 2022 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recover file exists error by retrying
1 participant