Testing the Plugin
Warning
This content is part of the legacy version of Waypoint that is no longer actively maintained. For additional information on the new vision of Waypoint, check out this blog post and the HCP Waypoint documentation.
Video tutorial below:
Let's build our example application; first, we need to run waypoint init
to set up the application.
If you see an error that the plugin could not be found, please ensure you have installed the plugin binary to the proper location. For additional help steps, see the troubleshooting plugin installation section.
If you look in the application folder, you will see a new binary called app
which is the product of your plugin.
Let's run this; you will see the message "Hello Waypoint" that you wrote in the main.go
.
Summary
You have now successfully created a simple Build
plugin for Waypoint. Creating other plugin types for
ReleaseManager
, or Platform
follow similar concepts. Details on the interfaces for implementing these other plugins
can be found in the Plugin Components section of the documentation. The
Extending Waypoint section also contains other reference documentation related to plugin creation.
A full example of the plugin created in this guide can be found at the following location: https://github.com/hashicorp/waypoint-plugin-examples/tree/main/plugins/gobuilder_final