Skip to content

Commit 445ece9

Browse files
Document changes in UPGRADING.md
1 parent 748c439 commit 445ece9

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Diff for: docs/UPGRADING.md

+24
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,30 @@
22

33
Here you can find a list of migration guides to handle breaking changes between releases of the CLI.
44

5+
## 0.31.0
6+
7+
### Added `post_install` script support for tools
8+
9+
The `post_install` script now runs when a tool is correctly installed and the CLI is in "interactive" mode. This
10+
behavior can be [configured](https://arduino.github.io/arduino-cli/0.30/commands/arduino-cli_core_install/#options).
11+
12+
### golang API: methods in `github.com/arduino/arduino-cli/arduino/cores/packagemanager` changed signature
13+
14+
The following methods in `github.com/arduino/arduino-cli/arduino/cores/packagemanager`:
15+
16+
```go
17+
func (pme *Explorer) InstallTool(toolRelease *cores.ToolRelease, taskCB rpc.TaskProgressCB) error { ... }
18+
func (pme *Explorer) RunPostInstallScript(platformRelease *cores.PlatformRelease) error { ... }
19+
```
20+
21+
have changed. `InstallTool` requires the new `skipPostInstall` parameter, which must be set to `true` to skip the post install script.
22+
`RunPostInstallScript` does not require a `*cores.PlatformRelease` parameter but requires a `*paths.Path` parameter:
23+
24+
```go
25+
func (pme *Explorer) InstallTool(toolRelease *cores.ToolRelease, taskCB rpc.TaskProgressCB, skipPostInstall bool) error {...}
26+
func (pme *Explorer) RunPostInstallScript(installDir *paths.Path) error { ... }
27+
```
28+
529
## 0.30.0
630

731
### Sketch name validation

0 commit comments

Comments
 (0)