[BUG] `kube-linter version` for v0.6.3 returns the wrong version string

Đang mở
#548 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
git, go
Lĩnh vực
cli, release

Hướng nghiên cứu

The bug is that the released 0.6.3 binary reports v0.6.2-0-g191de10fd5 from kube-linter version. Start by checking whether the tag and commit behind the release match, using the reproduction steps in the issue, and find where the version string is set at build time. Done means the released binary prints v0.6.3 and the build metadata is correct. The payload does not name the build file, so confirm where the version is injected before editing.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

System info:

  • OS: Linux

Describe the bug
Release 0.6.3 returns v0.6.2-0-g191de10fd5 when calling kube-linter version.

To Reproduce
Steps to reproduce the behavior:

wget -q https://github.com/stackrox/kube-linter/releases/download/v0.6.3/kube-linter-linux.tar.gz -O ./kube-linter-lin
ux.tar.gz && tar -xvzf ./kube-linter-linux.tar.gz -C ./
./kube-linter version

Expected behavior
kube-linter version returns the correct version.

Ngôn ngữ chính
Go
Star
3.5k
Fork
277
Merge trung bình
1 ngày 22 phút
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của stackrox/kube-linter

Tất cả issue của stackrox/kube-linter

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.