Skip to content

Commit 4b6947b

Browse files
committed
Fix Pyre install
1 parent e038f8e commit 4b6947b

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

action.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,14 @@ runs:
134134
echo "::debug::Installing ${INPUTS_LINTER}${LINTER_VERSION_CONSTRAINT} for Python ${INPUTS_PYTHON_VERSION}"
135135
136136
# install linter
137-
if ! "${PYTHON_CMD}" -mpip install -q "${INPUTS_LINTER}${LINTER_VERSION_CONSTRAINT}" ${EXTRA_PIP_FLAGS}; then
138-
echo "::error::${INPUTS_LINTER}${LINTER_VERSION_CONSTRAINT} failed to install for Python ${INPUTS_PYTHON_VERSION}"
137+
LINTER_PACKAGE="${INPUTS_LINTER}"
138+
139+
if [[ "${INPUTS_LINTER}" == "pyre" ]]; then
140+
LINTER_PACKAGE="pyre-check"
141+
fi
142+
143+
if ! "${PYTHON_CMD}" -mpip install -q "${LINTER_PACKAGE}${LINTER_VERSION_CONSTRAINT}" ${EXTRA_PIP_FLAGS}; then
144+
echo "::error::${LINTER_PACKAGE}${LINTER_VERSION_CONSTRAINT} failed to install for Python ${INPUTS_PYTHON_VERSION}"
139145
# if it is fixit on 3.7, just exit 0, we know it's not available
140146
if [[ "${INPUTS_LINTER}" == "fixit" && "${INPUTS_PYTHON_VERSION}" == "3.7" ]]; then
141147
exit 0

0 commit comments

Comments
 (0)