jfrog/terraform-provider-artifactory

`external_dependencies_patterns` incorrectly forces new on go virtual repos

Closed this issue · 1 comments

Describe the bug
Changing the value of external_dependencies_patterns for a go virtual repository causes the resource to be replaced. This is cause by

begin true.

This behaviour is inconsistent with the UI which does allow you to change the patterns after repository creation.

Requirements for an issue

  • A description of the bug
  • A fully functioning terraform snippet that can be copy&pasted (no outside files or ENV vars unless that's part of the issue). If this is not supplied, this issue will likely be closed without any effort expended.
  • Your version of artifactory (you can curl it at $host/artifactory/api/system/version
  • Your version of terraform
  • Your version of terraform provider

Expected behavior
Setting external_dependencies_patterns should not cause the go virtual repository resource to be recreated.

Additional context
Add any other context about the problem here.

@jamestoyer Thanks for the report. I don't recall the reason this attribute is set with ForceNew but I'm sure that it was correct.

Its behavior in Artifactory probably has changed since then, so I'll update this in our next sprint.