(version string)
| 1547 | } |
| 1548 | |
| 1549 | func defaultUpgradeMessage(version string) string { |
| 1550 | // Our installation script doesn't work on Windows, so instead we direct the user |
| 1551 | // to the GitHub release page to download the latest installer. |
| 1552 | version = strings.TrimPrefix(version, "v") |
| 1553 | if runtime.GOOS == "windows" { |
| 1554 | return fmt.Sprintf("download the server version from: https://github.com/coder/coder/releases/v%s", version) |
| 1555 | } |
| 1556 | return fmt.Sprintf("download the server version with: 'curl -L https://coder.com/install.sh | sh -s -- --version %s'", version) |
| 1557 | } |
| 1558 | |
| 1559 | // serverVersionMessage returns a warning message if the server version |
| 1560 | // is a release candidate or development build. Returns empty string |
no outgoing calls
no test coverage detected