-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved deployer version mismatch error.
Recall that when a deployer deploys a binary, it first extracts the deployer API version from the binary and checks that its deployer API version is compatible. Before this PR, the resulting error message looked like this: ``` version mismatch: deployer's deployer API version v0.17.0 is incompatible with app' deployer API version v0.14.0 ``` Now, it looks like this: ``` ERROR: The binary you're trying to deploy ("collatz") was built with github.com/ServiceWeaver/weaver module version v0.17.0 (deployer API version v0.14.0). However, the 'weaver multi' binary you're using was built with weaver module version v0.17.0 (deployer API version v0.15.0). These versions are incompatible. We recommend updating both the weaver module your application is built with and updating the 'weaver multi' command by running the following. go get github.com/ServiceWeaver/weaver@latest go install github.com/ServiceWeaver/weaver/cmd/weaver@latest Then, re-build your code and re-run 'weaver multi deploy'. If the problem persists, please file an issue at https://github.com/ServiceWeaver/weaver/issues. ``` This PR also makes the multi and ssh deployers check these versions earlier, before trying to deploy anything. See #431 for a similar PR.
- Loading branch information
1 parent
1e58cb8
commit f82cb58
Showing
5 changed files
with
132 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters