Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provider doesn't work with beta CLI version #148

Open
volodymyrZotov opened this issue Jan 22, 2024 · 1 comment
Open

Provider doesn't work with beta CLI version #148

volodymyrZotov opened this issue Jan 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@volodymyrZotov
Copy link
Collaborator

Your environment

Terraform Provider Version: v1.4.1

Connect Server Version: n/a

CLI Version: 2.23.0-beta.01

OS: 13.4.1

Terraform Version: 1.6.4

What happened?

Provider throws an error when using with beta CLI version.

Error: failed to get version of op CLI: Version segment starts with 0 (input is: 2.23.0-beta.01)

What did you expect to happen?

It should work with with beta version.

Steps to reproduce

  1. Install 1Password CLI v2.23.0-beta.01 .
  2. Use the following main.tf
# main.tf
provider "onepassword" {
  account     = "your_account_email"
  op_cli_path = "/usr/local/bin/op"
}

resource "onepassword_item" "demo_login" {
  vault = "you_vault_uuid"

  title    = "Demo Terraform Login"
  category = "login"
  username = "[email protected]"
}
  1. terraform init
  2. terraform apply

Notes & Logs

semver package could not parse the cli beta version 2.23.0-beta.01 and threw an error.

semver.NewVersion(versionString)

The problem is that 1Password CLI releases has . between beta and build number. The version without dot 2.23.0-beta01 is parsed correctly.

We need to find a workaround for that.

@volodymyrZotov volodymyrZotov added the bug Something isn't working label Jan 22, 2024
@volodymyrZotov volodymyrZotov changed the title Provider doesn't work with beta versions Provider doesn't work with beta CLI version Jan 22, 2024
@mrclrchtr
Copy link

So there is currently no way to use the terraform plugin in combination with the terraform module?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants