mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
Update to node v1.21.1, fix script to use luxfi/node instead of luxfi/luxd
This commit is contained in:
@@ -26,7 +26,7 @@ require (
|
||||
github.com/luxfi/log v1.1.24
|
||||
github.com/luxfi/math v1.0.0
|
||||
github.com/luxfi/metric v1.4.5
|
||||
github.com/luxfi/node v1.20.9
|
||||
github.com/luxfi/node v1.21.1
|
||||
github.com/luxfi/p2p v1.0.2
|
||||
github.com/luxfi/timer v1.0.1
|
||||
github.com/luxfi/units v1.0.0
|
||||
|
||||
@@ -221,8 +221,8 @@ github.com/luxfi/metric v1.4.5 h1:fD6gtpzB5ebGB06/m4K7e5+tOV5RiVHSZCV+Zb8ZDxk=
|
||||
github.com/luxfi/metric v1.4.5/go.mod h1:AUQ7NSNz9WndAcr/SKnOkP7XSFFnBXOa+ihtJYfDaQY=
|
||||
github.com/luxfi/mock v0.1.0 h1:IwElfNu+T9sXvzFX6tudPDx1vqPuACRSRdxpD5lxW+o=
|
||||
github.com/luxfi/mock v0.1.0/go.mod h1:izF+9K0gGzFC9zERn6Po37v46eLdPB+EIsDjL3GLk+U=
|
||||
github.com/luxfi/node v1.20.9 h1:8pt9BbEhnaw+xT9M1tY2E/UmuW+R6mIoTStevk7FJ/E=
|
||||
github.com/luxfi/node v1.20.9/go.mod h1:YP0AJp+I01Pv7qU33MWS6WVR92F3u0P8AHps/nQ68DQ=
|
||||
github.com/luxfi/node v1.21.1 h1:ZYqsJOyDy8fhw4rpA1PkajTk44OeQv5pTUJEyef4HnE=
|
||||
github.com/luxfi/node v1.21.1/go.mod h1:YP0AJp+I01Pv7qU33MWS6WVR92F3u0P8AHps/nQ68DQ=
|
||||
github.com/luxfi/p2p v1.0.2 h1:Nv6cJy06wn5ze6ciFbu6fslZd9bmTwEmQGSl4VD/6ko=
|
||||
github.com/luxfi/p2p v1.0.2/go.mod h1:+X1PRp++lOxcFQ8IhQtVK+c5s/ZwJ4Sef8u94UsWoUs=
|
||||
github.com/luxfi/timer v1.0.1 h1:3lRf3j0L/fA3Ud0j67cm/BW2In1kz+jxd1HqgKyglYY=
|
||||
|
||||
@@ -16,8 +16,8 @@ EVM_PATH=$(
|
||||
VERSION="${1:-}"
|
||||
|
||||
if [[ -n "${VERSION}" ]]; then
|
||||
echo "Ensuring Luxd version $VERSION in go.mod"
|
||||
go get "github.com/luxfi/luxd@${VERSION}"
|
||||
echo "Ensuring Node version $VERSION in go.mod"
|
||||
go get "github.com/luxfi/node@${VERSION}"
|
||||
go mod tidy
|
||||
fi
|
||||
|
||||
@@ -33,11 +33,11 @@ else
|
||||
echo "No GITHUB_TOKEN found, using unauthenticated requests"
|
||||
fi
|
||||
|
||||
GIT_COMMIT=$("${CURL_ARGS[@]}" "https://api.github.com/repos/luxfi/luxd/commits/${LUX_VERSION}")
|
||||
GIT_COMMIT=$("${CURL_ARGS[@]}" "https://api.github.com/repos/luxfi/node/commits/${LUX_VERSION}")
|
||||
FULL_LUX_VERSION="$(grep -m1 '"sha":' <<< "${GIT_COMMIT}" | cut -d'"' -f4)"
|
||||
|
||||
# Ensure the custom action version matches the lux version
|
||||
WORKFLOW_PATH=".github/workflows/tests.yml"
|
||||
CUSTOM_ACTION="luxfi/luxd/.github/actions/run-monitored-tmpnet-cmd"
|
||||
echo "Ensuring Luxd version ${FULL_LUX_VERSION} for ${CUSTOM_ACTION} custom action in ${WORKFLOW_PATH} "
|
||||
CUSTOM_ACTION="luxfi/node/.github/actions/run-monitored-tmpnet-cmd"
|
||||
echo "Ensuring Node version ${FULL_LUX_VERSION} for ${CUSTOM_ACTION} custom action in ${WORKFLOW_PATH} "
|
||||
sed -i.bak "s|\(uses: ${CUSTOM_ACTION}\)@.*|\1@${FULL_LUX_VERSION}|g" "${WORKFLOW_PATH}" && rm -f "${WORKFLOW_PATH}.bak"
|
||||
|
||||
Reference in New Issue
Block a user