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

Making list-remote a little more stable #33

Open
wants to merge 54 commits into
base: master
Choose a base branch
from

Conversation

avnerenv0
Copy link

@avnerenv0 avnerenv0 commented Feb 3, 2022

  • Adding pagination to list-remote Github Releases call
  • Updating the local fallback with newer versions.

closes #32

@omry-hay
Copy link

omry-hay commented Feb 3, 2022

This is very very important to us, we get a lot of failed installation in our CI with no real fallback.

@yair-segal
Copy link

@avnerenv0 do you know if this is being reviewed? We are experiencing issues just like @omry-hay mentioned - CI is failing...

@avnerenv0
Copy link
Author

@avnerenv0 do you know if this is being reviewed? We are experiencing issues just like @omry-hay mentioned - CI is failing...

env0 uses the fork, which we maintain and review.
But the updated version wasn't released yet.
We'll keep you informed in our usual support channels 🙏

@avnerenv0 avnerenv0 changed the title Adding the 100 newest versions to the local fallback file Making list-remote a little more stable Mar 17, 2022
@yair-segal
Copy link

Ok, thank you. I will use the fork meanwhile - it works.

@avnerenv0
Copy link
Author

Yeah this repo isn't really being maintained ...
This PR is just to be nice but I don't expect it to be reviewed anytime soon.

@cunymatthieu - would love to get your take on that - are you looking to add maintainers or transfer ownership ?

@@ -28,8 +28,6 @@ else
fi

[ -n "${version}" ] || error_and_die "Version is not specified"
version="$(tgenv-list-remote | grep -e "${regex}" | head -n 1)"
[ -n "${version}" ] || error_and_die "No versions matching '${1}' found in remote"
Copy link

Choose a reason for hiding this comment

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

Hello,

I don't understand why you have removed the possibility to use the tag latest. Sometimes, you just want the latest version no matter what.

return_code=$?
if [ $return_code -eq 22 ];then
warn_and_continue "Failed to get list verion on $link_release"
warn_and_continue "Failed to get list version on $link_release"
print=`cat ${TGENV_ROOT}/list_all_versions_offline`
Copy link

Choose a reason for hiding this comment

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

Hello,

I don't see why the file list_all_version_offline is not in the .gitignore and updated each time the website is online

return_code=$?
if [ $return_code -eq 22 ];then
warn_and_continue "Failed to get list verion on $link_release"
warn_and_continue "Failed to get list version on $link_release"
print=`cat ${TGENV_ROOT}/list_all_versions_offline`
fi

Copy link

Choose a reason for hiding this comment

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

Suggested change
echo $print | grep -o -E "[0-9]+\.[0-9]+\.[0-9]+(-(rc|beta)[0-9]+)?" | uniq | tee ${TGENV_ROOT}/list_all_versions_offline

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.

Offline versions are out of date
10 participants