Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

ci: lint/go bodyclose in azureidentity_internal_test.go

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

@jdomeracki-coder đang làm issue này rồi.

Từ ngày 13/5/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

CI Run Link: https://github.com/coder/coder/actions/runs/25791859937
Failed Job: https://github.com/coder/coder/actions/runs/25791859937/job/75759237891 (lint)

Commit Info:

Error Evidence:

##[error]coderd/azureidentity/azureidentity_internal_test.go:67:31: response body must be closed (bodyclose)
    _, err := certFetchClient.Get(srv.URL)
                                 ^

Root Cause:
TestCertFetchClientRejectsLoopback calls certFetchClient.Get(srv.URL) without closing the response body, tripping the bodyclose linter in make lint.

Precise Assignment Analysis:

  • git blame is not available via the API; used file history instead.
  • git log --oneline -10 --follow coderd/azureidentity/azureidentity_internal_test.go -> fb3aef188 (Jakub Domeracki) most recent change.
    Assigning to jdomeracki-coder as the author of the latest changes to this test.

Classification:
E. Code Change (lint violation).

Related Issues Searched:

  • "response body must be closed" + bodyclose
  • "azureidentity_internal_test.go"
  • "azureidentity" + lint

Reproduction:

  • make lint (or golangci-lint run with bodyclose enabled)
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
3
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 coder/internal

Tất cả issue của coder/internal

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.