Chris Roberts
2d5cb6b0fa
Force the string proto value to be a string
2022-06-15 10:55:00 -07:00
Chris Roberts
dc5c643364
Add direct conversions of types
2022-06-15 10:55:00 -07:00
Chris Roberts
f949eb9042
Load new mappers and allow for direct conversion
2022-06-15 10:55:00 -07:00
Chris Roberts
4e869330cd
Load config service and use global cache
2022-06-15 10:55:00 -07:00
Chris Roberts
8061a95a81
Update internal service plugins and vagrantfile loading
2022-06-15 10:55:00 -07:00
Chris Roberts
41a47617b0
Add config service for handling configuration
2022-06-15 10:55:00 -07:00
Chris Roberts
582f253605
Update types used for provisioner service
2022-06-15 10:55:00 -07:00
Chris Roberts
cde5479b8f
Set value directly as it will have indifferent access
2022-06-15 10:55:00 -07:00
Chris Roberts
82efdf3e4b
Remove extraneous logging from client setup
2022-06-15 10:55:00 -07:00
Chris Roberts
79f5264c5d
Since we are inspecting, don't wrap value
2022-06-15 10:55:00 -07:00
Chris Roberts
a3dd70dd50
Allow for nested plugins
2022-06-15 10:55:00 -07:00
Chris Roberts
8024bd3bf5
Clean up names in funcspec helpers
2022-06-15 10:55:00 -07:00
Chris Roberts
babe5acdaf
Remove custom to_proto methods from configs
2022-06-15 10:55:00 -07:00
Chris Roberts
555d8ae7a3
Adjust provisioner to upload file before modifying it
2022-06-15 10:55:00 -07:00
Chris Roberts
255c75eeba
Load Vagrantfile from the client
2022-06-15 10:55:00 -07:00
Sophia Castellarin
708b688b3f
Merge pull request #286 from hashicorp/box-set-last-update
...
Update timestamp whenever a box is updated
2022-06-13 08:42:55 -05:00
sophia
6e28e0856c
Update timestamp whenever a box is updated
2022-06-10 15:05:34 -05:00
Paul Hinze
94caf200e8
Merge pull request #285 from hashicorp/improve-run-operation-error-handling
...
Improve run operation error handling
2022-06-10 13:04:43 -05:00
Paul Hinze
e829550ea7
Improve run operation error handling
...
There are some cases where the error that gets returned from scope.Run
is not a core.CommandError which results in a type mismatch panic. This
fixes that and wraps any generic errors into the proper response struct.
2022-06-10 11:14:14 -05:00
Paul Hinze
f2417e09a8
Merge pull request #284 from hashicorp/provider-options-bugfixes
...
Fix some bugs in provider options handling
2022-06-08 18:02:31 -05:00
Paul Hinze
74c0337200
Merge pull request #283 from hashicorp/update-protobuf-deprecations
...
Update and address protobuf package deprecations
2022-06-08 17:38:38 -05:00
Paul Hinze
71cc8ee7bb
Fix some bugs in provider options handling
...
- Defaultable needs to default to true when it's not specified
- We need to allow a non-defaultable provider to be selected if it shows
up in the config
2022-06-08 17:25:16 -05:00
Paul Hinze
8b5d4b8631
Update and address protobuf package deprecations
...
These changes address the following warning showing up on `go get`
operations:
go: module github.com/golang/protobuf is deprecated: Use the
"google.golang.org/protobuf" module instead.
All changes are made using the recommendations in the per-function
deprecation notices from the docs at
https://pkg.go.dev/github.com/golang/protobuf/ptypes
2022-06-08 11:51:19 -05:00
Sophia Castellarin
00829ba9e6
Merge pull request #277 from hashicorp/downloader-plugin
...
Downloader plugin
2022-06-08 11:06:36 -05:00
sophia
4289b1b7cd
Bump sdk
2022-06-08 10:31:20 -05:00
sophia
c5a996000d
Add deps on go-retryablehttp
2022-06-08 10:30:46 -05:00
sophia
0cdb63db58
Flush out http downloader
2022-06-08 10:30:46 -05:00
sophia
1af502ee9f
Rename filedownloader -> httpdownloader
2022-06-08 10:30:46 -05:00
sophia
09f92f5ce9
Use http client as downloader
2022-06-08 10:30:46 -05:00
sophia
7282d43fae
Make downloader plugin configurable
2022-06-08 10:30:46 -05:00
sophia
36081df049
Load filedownloader plugin
2022-06-08 10:30:46 -05:00
sophia
ec2e2a6e89
go generate
2022-06-08 10:30:46 -05:00
sophia
9c234618f3
Add downloader builtin plugin
2022-06-08 10:30:46 -05:00
sophia
90825f7086
go generate
2022-06-08 10:30:46 -05:00
Paul Hinze
42f5ca2621
Merge pull request #282 from hashicorp/synced-folder-options
...
Use plugin options for Synced Folder priorities
2022-06-07 16:21:49 -05:00
Paul Hinze
57a7ea8d5a
Bump SDK
2022-06-07 15:39:13 -05:00
Paul Hinze
8b08b3117c
Use plugin options for Synced Folder priorities
...
Now that plugin options are available, we can use them to interpret
synced folder priorities and remove the shim we had in place.
2022-06-06 17:39:09 -05:00
Paul Hinze
f2071c2a98
Merge pull request #281 from hashicorp/component-priorities-and-metadata
...
Use Component Options to implement ProviderOptions
2022-06-06 17:36:32 -05:00
Paul Hinze
2c27d5f125
Bump SDK
2022-06-06 17:08:24 -05:00
Paul Hinze
8dbe72a5a0
Use Component Options to implement ProviderOptions
...
* Populates ComponentOptions into plugin structs
* Maps options for legacy Provider Plugins into PluginOptions
* Demos use of PluginOptions in a stub provider
* Honors plugin priority and defaultable settings
2022-06-03 16:37:05 -05:00
Paul Hinze
7341d41c01
Merge pull request #280 from hashicorp/update-deps
...
nix: Update deps and rerun generate
2022-06-03 14:52:31 -05:00
Paul Hinze
c60f82d22f
go generate w/ latest version of deps
2022-06-03 14:40:00 -05:00
Paul Hinze
7e3066e7be
nix: Update protobuf & mockery to latest version
...
Also run `nix flake update` to get general package updates
2022-06-03 14:28:40 -05:00
Sophia Castellarin
fa1f45732b
Merge pull request #276 from hashicorp/machine-readable-flag
...
Machine readable flag
2022-06-03 12:11:15 -05:00
sophia
3f4ab04e3d
Bump sdk
2022-06-03 09:28:53 -05:00
Sophia Castellarin
d258cc2174
Merge pull request #279 from hashicorp/command-remote-plugin
...
Add command remote plugin
2022-06-02 11:33:44 -05:00
sophia
1ad8dc5234
Add command remote plugin
2022-06-01 14:36:19 -05:00
sophia
194882214a
Add machine readable bool endpoint to terminal ui
2022-05-31 15:47:47 -05:00
sophia
4ffe33461c
go generate .
2022-05-31 15:47:27 -05:00
sophia
9ed92d2ab6
Recognize --machine-readable flag
2022-05-31 14:41:34 -05:00