Skip to content

Conversation

@supernovahs
Copy link
Contributor

@supernovahs supernovahs commented Jun 9, 2025

Closes #158

Motivation:

If user accidentally have an old devkit version , but. an avs project with a unsupported(newer than what the current cli can support) context yaml , then the migration fails with not a proper indication as to what the error is , and the potential problems it can create

Modifications:

Now , user will get a warning when they run any command, with proper steps to rectify i.e update their cli version.

Result:

Less chances for user to corrupt their context

Testing:

Manual testing. Ran a 0.0.6 yaml with the current 0.0.5 yaml supported cli version.
Open questions:

@supernovahs supernovahs changed the title Nova/warning for new context old devkit version feat: warning for new context with old devkit version Jun 9, 2025
@supernovahs supernovahs marked this pull request as ready for review June 9, 2025 19:19
@supernovahs supernovahs requested a review from a team as a code owner June 9, 2025 19:19
@supernovahs supernovahs requested a review from grezle June 16, 2025 11:15
Comment on lines +136 to +141
VERSION=%s
ARCH=$(uname -m | tr '[:upper:]' '[:lower:]')
DISTRO=$(uname -s | tr '[:upper:]' '[:lower:]')
mkdir -p $HOME/bin
curl -sL "https://s3.amazonaws.com/eigenlayer-devkit-releases/${VERSION}/devkit-${DISTRO}-${ARCH}-${VERSION}.tar.gz" | tar xv -C "$HOME/bin"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Minor nit: lets make sure the whitespace is consistent here:

Suggested change
VERSION=%s
ARCH=$(uname -m | tr '[:upper:]' '[:lower:]')
DISTRO=$(uname -s | tr '[:upper:]' '[:lower:]')
mkdir -p $HOME/bin
curl -sL "https://s3.amazonaws.com/eigenlayer-devkit-releases/${VERSION}/devkit-${DISTRO}-${ARCH}-${VERSION}.tar.gz" | tar xv -C "$HOME/bin"
VERSION=%s
ARCH=$(uname -m | tr '[:upper:]' '[:lower:]')
DISTRO=$(uname -s | tr '[:upper:]' '[:lower:]')
mkdir -p $HOME/bin
curl -sL "https://s3.amazonaws.com/eigenlayer-devkit-releases/${VERSION}/devkit-${DISTRO}-${ARCH}-${VERSION}.tar.gz" | tar xv -C "$HOME/bin"

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.

Add explicit warning for newer context version with old devkit version

3 participants