-
-
Notifications
You must be signed in to change notification settings - Fork 345
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
Fix IDF tool installation #2861
Conversation
Double-typed 'install', and wildcard tool spec. only supported for IDF 5.2 Just provide explicit list of tools for each version
Since we're not attempting a reinstall in CI can just remove entire tree
Select level of cleaning required Rebuild happens in due course, no need for a specific action.
I cleaned the appropriate IDF caches before creating this PR so will actually run the install scripts to verify. |
# Be specific about which tools we want to install for each IDF version | ||
IDF_TOOL_PACKAGES=$(tr '\n' ' ' < "$SMING_HOME/Arch/Esp32/Tools/idf_tools-${INSTALL_IDF_VER}.lst") | ||
echo "Install: $IDF_TOOL_PACKAGES" | ||
python3 "$IDF_PATH/tools/idf_tools.py" --non-interactive install $IDF_TOOL_PACKAGES |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy persistently complains when variables such as $IDF_TOOL_PACKETS
are used without quotes. I'm not clear on the best way to shut it up, but this usage is intended.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clear on the best way to shut it up, but this usage is intended.
I will do it. Basically you need to click on "Ignore issue" for this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@mikee47 do you have something else to add to this PR? |
@slaff Nope, all done until something else breaks :-) |
I've wiped all the caches so this gets a proper run when it's merged |
This PR fixes tool installation for IDF < 5.2.
Overlooked that wildcard tool spec. only supported for IDF 5.2 installer.
Fixed by providing explicit list of tools for each version.
Improve cache-clean action
Not very intuitive so added four levels of cleaning:
Removed the
cache-rebuild
action since we can just do a cache clean then manually trigger a rebuild of the develop branch to accomplish a similar thing.Update
clean-tools.py
scriptDidn't clean some tools.