Skip to content

Commit d9ec996

Browse files
author
Julien Levasseur
authored
Merge pull request #8 from julienlevasseur/switch-to-forked-goInfo
feat: Switch to forked goInfo dependency (to swtich from uname -i to …
2 parents 23b9049 + 26b20ed commit d9ec996

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Terraform Provider for uname
22

33
The Teraform Uname Provider is a plugin for Terraform that allows to access system information from a Terraform Data Source.
4-
Terraform Registry URL: https://registry.terraform.io/providers/julienlevasseur/uname
4+
Terraform Registry URL: [https://registry.terraform.io/providers/julienlevasseur/uname](https://registry.terraform.io/providers/julienlevasseur/uname)
55

66
## Quick Starts
7+
78
- [Using the provider](https://github.com/julienlevasseur/terraform-provider-uname/blob/main/docs/index.md)

docs/data-sources/uname.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ output "localhost_kernel_name" {
2020
}
2121
2222
output "localhost_nodename" {
23-
value = data.uname.localhost.nodename
23+
value = data.uname.localhost.node_name
2424
}
2525
2626
output "localhost_kernel_release" {

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ go 1.21
44

55
require (
66
github.com/hashicorp/terraform-plugin-framework v1.4.2
7-
github.com/matishsiao/goInfo v0.0.0-20210923090445-da2e3fa8d45f
7+
github.com/hashicorp/terraform-plugin-go v0.19.0
8+
github.com/julienlevasseur/goInfo v0.1.0
89
)
910

1011
require (
@@ -13,11 +14,10 @@ require (
1314
github.com/hashicorp/go-hclog v1.5.0 // indirect
1415
github.com/hashicorp/go-plugin v1.5.1 // indirect
1516
github.com/hashicorp/go-uuid v1.0.3 // indirect
16-
github.com/hashicorp/terraform-plugin-go v0.19.0 // indirect
1717
github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect
1818
github.com/hashicorp/terraform-registry-address v0.2.2 // indirect
1919
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
20-
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect
20+
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb // indirect
2121
github.com/mattn/go-colorable v0.1.12 // indirect
2222
github.com/mattn/go-isatty v0.0.14 // indirect
2323
github.com/mitchellh/go-testing-interface v1.14.1 // indirect

go.sum

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ github.com/hashicorp/terraform-registry-address v0.2.2 h1:lPQBg403El8PPicg/qONZJ
2727
github.com/hashicorp/terraform-registry-address v0.2.2/go.mod h1:LtwNbCihUoUZ3RYriyS2wF/lGPB6gF9ICLRtuDk7hSo=
2828
github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S52uzrw4x0jKQ=
2929
github.com/hashicorp/terraform-svchost v0.1.1/go.mod h1:mNsjQfZyf/Jhz35v6/0LWcv26+X7JPS+buii2c9/ctc=
30-
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d h1:kJCB4vdITiW1eC1vq2e6IsrXKrZit1bv/TDYFGMp4BQ=
31-
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM=
30+
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb h1:b5rjCoWHc7eqmAS4/qyk21ZsHyb6Mxv/jykxvNTkU4M=
31+
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM=
3232
github.com/jhump/protoreflect v1.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c=
3333
github.com/jhump/protoreflect v1.15.1/go.mod h1:jD/2GMKKE6OqX8qTjhADU1e6DShO+gavG9e0Q693nKo=
34-
github.com/matishsiao/goInfo v0.0.0-20210923090445-da2e3fa8d45f h1:B0OD7nYl2FPQEVrw8g2uyc1lGEzNbvrKh7fspGZcbvY=
35-
github.com/matishsiao/goInfo v0.0.0-20210923090445-da2e3fa8d45f/go.mod h1:aEt7p9Rvh67BYApmZwNDPpgircTO2kgdmDUoF/1QmwA=
34+
github.com/julienlevasseur/goInfo v0.1.0 h1:Rd4qMGllKXiX1aQ+x4gwAypUyGZB+vAQJMhJtUJKaKs=
35+
github.com/julienlevasseur/goInfo v0.1.0/go.mod h1:tDEzqlUbAIjxId8FZHLNRgfIGptu8WKV3oCBVNMfb64=
3636
github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
3737
github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40=
3838
github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4=
@@ -47,8 +47,9 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
4747
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
4848
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
4949
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
50-
github.com/stretchr/testify v1.7.2 h1:4jaiDzPyXQvSd7D0EjG45355tLlV3VOECpq10pLC+8s=
5150
github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals=
51+
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
52+
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
5253
github.com/vmihailenco/msgpack/v5 v5.3.5 h1:5gO0H1iULLWGhs2H5tbAHIZTV8/cYafcFOr9znI5mJU=
5354
github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc=
5455
github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g=

internal/provider/data_source_uname.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/hashicorp/terraform-plugin-framework/datasource"
77
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
88
"github.com/hashicorp/terraform-plugin-framework/types"
9-
"github.com/matishsiao/goInfo"
9+
"github.com/julienlevasseur/goInfo"
1010
)
1111

1212
var (

0 commit comments

Comments
 (0)