An error is reported when the consul --version command is executed.
- Dominant language
- Go
- Stars
- 30.1k
- Forks
- 4.6k
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 39
Description
When the 1.18.2 version is used, an error is reported when the consul --version and consul -h commands are executed after the installation. The error information is as follows:
[root@localhost -]#consul -h
Fatal error with internal time set; check makefile for build date 0001-01-01 00:00:00 +0000 UTC parsing time "" as "2006-01-02T15:04:05Z07:00": cannot parse "" as "2006"
Usage: consul [--version] [--help] []
Available commands are:
acl Interact with Consul's ACLs
agent Runs a Consul agent
catalog Interact with the catalog
Config Interact with Consul's Centralized Configurations
connect Interact with Consul Connect
=============================================
[root@localhost -]#consul --version
parsing time "" as "2006-01-02T15:04:05Z07:00": cannot parse "" as "2006"
Contributor guide
Research direction
Reproduce the failure with Consul 1.18.2 using `consul --version` and `consul -h`. Start by tracing the build date and version metadata referenced by the error, including the Makefile. Done means both commands run without the time-parsing error and report their expected version or help output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100