Open samuel-phan opened 1 year ago
When setting up the TFENV_REMOTE to a private Artifactory mirror:
TFENV_REMOTE
$ TFENV_REMOTE=https://example.jfrog.io/artifactory/hashicorp
tfenv list-remote shows a wrong version 7.38.7 that comes from the Artifactory version:
tfenv list-remote
7.38.7
❯ tfenv list-remote 0.10.0 0.10.1 0.10.2 ... (truncated) 1.4.5 1.4.6 1.5.0 7.38.7
The Artifactory HTML page can look like this:
Name Last modified Size
../ 0.13.0/ 15-Jun-2023 15:19 - 0.13.1/ 15-Jun-2023 15:18 - 0.13.2/ 15-Jun-2023 15:17 - 0.13.3/ 15-Jun-2023 15:16 - 0.13.4/ 15-Jun-2023 15:15 - 0.13.5/ 15-Jun-2023 15:14 - 0.13.6/ 15-Jun-2023 15:12 - 0.13.7/ 15-Jun-2023 15:11 - 0.14.0/ 15-Jun-2023 15:10 - 0.14.1/ 15-Jun-2023 15:08 - 0.14.10/ 15-Jun-2023 14:57 - 0.14.11/ 15-Jun-2023 14:56 - 0.14.2/ 15-Jun-2023 15:07 - 0.14.3/ 15-Jun-2023 15:06 - 0.14.4/ 15-Jun-2023 15:05 - 0.14.5/ 15-Jun-2023 15:04 - 0.14.6/ 15-Jun-2023 15:03 - 0.14.7/ 15-Jun-2023 15:01 - 0.14.8/ 15-Jun-2023 15:00 - 0.14.9/ 15-Jun-2023 14:59 - 0.15.0/ 15-Jun-2023 14:55 - 0.15.1/ 15-Jun-2023 14:54 - 0.15.2/ 15-Jun-2023 14:53 - 0.15.3/ 15-Jun-2023 14:52 - 0.15.4/ 15-Jun-2023 14:50 - 0.15.5/ 15-Jun-2023 14:49 - 0.5.3/ 07-Jun-2023 16:34 - 1.0.0/ 15-Jun-2023 14:48 - 1.0.1/ 15-Jun-2023 14:47 - 1.0.10/ 15-Jun-2023 14:40 - 1.0.11/ 15-Jun-2023 13:49 - 1.0.2/ 15-Jun-2023 13:50 - 1.0.3/ 15-Jun-2023 14:46 - 1.0.4/ 15-Jun-2023 14:45 - 1.0.5/ 15-Jun-2023 14:44 - 1.0.6/ 15-Jun-2023 14:43 - 1.0.7/ 15-Jun-2023 14:42 - 1.0.8/ 15-Jun-2023 14:41 - 1.0.9/ 15-Jun-2023 14:40 - 1.1.0/ 15-Jun-2023 14:38 - 1.1.1/ 15-Jun-2023 14:37 - 1.1.2/ 15-Jun-2023 14:37 - 1.1.3/ 15-Jun-2023 14:36 - 1.1.4/ 15-Jun-2023 14:35 - 1.1.5/ 15-Jun-2023 14:35 - 1.1.6/ 15-Jun-2023 14:34 - 1.1.7/ 24-Mar-2022 17:02 - 1.1.8/ 22-Apr-2022 15:25 - 1.1.9/ 22-Apr-2022 15:26 - 1.2.0/ 19-May-2022 11:20 - 1.2.1/ 24-May-2022 13:36 - 1.2.2/ 13-Jun-2022 08:19 - 1.2.3/ 17-Jun-2022 15:57 - 1.2.4/ 29-Jun-2022 23:00 - 1.2.5/ 13-Jul-2022 23:58 - 1.2.6/ 28-Jul-2022 18:30 - 1.2.7/ 17-Aug-2022 10:24 - 1.2.8/ 24-Aug-2022 15:37 - 1.2.9/ 10-Sep-2022 01:24 - 1.3.0/ 21-Sep-2022 16:21 - 1.3.1/ 28-Sep-2022 23:35 - 1.3.2/ 07-Oct-2022 00:17 - 1.3.3/ 19-Oct-2022 20:27 - 1.3.4/ 02-Nov-2022 18:35 - 1.3.5/ 19-Nov-2022 00:55 - 1.3.6/ 30-Nov-2022 22:16 - 1.3.7/ 04-Jan-2023 16:27 - 1.3.8/ 10-Feb-2023 01:21 - 1.3.9/ 16-Feb-2023 14:44 - 1.4.0/ 08-Mar-2023 21:36 - 1.4.1/ 15-Mar-2023 15:43 - 1.4.2/ 16-Mar-2023 14:31 - 1.4.3/ 30-Mar-2023 17:40 - 1.4.4/ 30-Mar-2023 22:02 - 1.4.5/ 14-Apr-2023 17:40 - 1.4.6/ 27-Apr-2023 11:24 - 1.5.0/ 12-Jun-2023 11:38 -
The footer line is something like this:
Artifactory/7.38.7 Server at XXX Port 8081
and this is where the wrong version comes from.
This Artifactory version must be removed from the list of available Terraform versions.
When setting up the
TFENV_REMOTE
to a private Artifactory mirror:tfenv list-remote
shows a wrong version7.38.7
that comes from the Artifactory version:The Artifactory HTML page can look like this:
Artifactory HTML page
```htmlIndex of hashicorp/terraform
Artifactory/7.38.7 Server at XXX Port 8081 ```
The footer line is something like this:
and this is where the wrong version comes from.
This Artifactory version must be removed from the list of available Terraform versions.