-
-
Notifications
You must be signed in to change notification settings - Fork 398
Run post_install when needed #893
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
Conversation
13d35d1
to
382581a
Compare
Does it really add anything to add an |
that's right, probably we should run post-install also for unsigned/3rd party. @luigigubello WDYT? |
FWIW I've ported this as-is from the Arduino IDE, so in case it should be changed also in the Arduino IDE. |
bf14fd7
to
382581a
Compare
@@ -91,6 +92,7 @@ func runUpgradeCommand(cmd *cobra.Command, args []string) { | |||
Instance: inst, | |||
PlatformPackage: platformRef.PackageName, | |||
Architecture: platformRef.Architecture, | |||
SkipPostInstall: detectSkipPostInstallValue(), |
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.
@silvanocerza could you please check if the --run-post-install
and --skip-post-install
flags need to be ported also in arduino-cli update
and upgrade
commands?
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.
Sure! I'll check it out.
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.
I looked at it and think it might be necessary to port them on the upgrade
command, it don't think it should be necessary for update
since it just downloads the index files.
164ebec
to
37bcb72
Compare
This is required for post_install script processing.
This reverts commit 382581a.
This should prevent CI-based runs to block waiting for user interaction.
37bcb72
to
522135b
Compare
Run
post_install.sh
script on trusted platformsAlso:
IsTrusted
flag inPlatformReleases