Skip to content

Bump packages - #27

Merged
zygintas merged 2 commits into
mainfrom
chore/bump-x-net-0.55.0
Jul 22, 2026
Merged

zygintas merged 2 commits into
mainfrom
chore/bump-x-net-0.55.0

Conversation

@zygintas

@zygintas zygintas commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

This pull request focuses on improving resource management and updating dependencies in the project. The main changes include switching all defer resp.Body.Close() calls to a safer closure pattern throughout the codebase, updating Go and dependency versions, and modernizing the lint workflow.

Resource management improvements:

  • Replaced all instances of defer resp.Body.Close() with defer func() { _ = resp.Body.Close() }() in HTTP response handling across multiple files (e.g., hostinger/client.go, hostinger/dns_record.go, hostinger/vps_data_sources.go, hostinger/vps_data_sources_validation.go, hostinger/vps_post_install_script.go, hostinger/vps_ssh_key_resource.go). This ensures any error from Close() is explicitly ignored, preventing possible linter warnings and improving code robustness. [1] [2] [3] [4] [5] [6] and related references)

Dependency and tooling updates:

  • Updated the Go version in go.mod to 1.25.0.
  • Bumped indirect dependencies (golang.org/x/mod, golang.org/x/net, etc.) to newer versions in go.mod.
  • Changed the GitHub Actions lint workflow to use the Go version from go.mod and upgraded golangci-lint-action from v6 to v8 for improved CI reliability and compatibility.

These changes enhance code quality, maintainability, and ensure the project uses up-to-date tooling and dependencies.

@zygintas
zygintas requested a review from a team as a code owner July 22, 2026 11:27
@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@zygintas, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 51 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 44dd4817-ff5b-4a6e-b014-157db0345892

📥 Commits

Reviewing files that changed from the base of the PR and between 09c3ef6 and 2bf7076.

📒 Files selected for processing (7)
  • .github/workflows/lint.yml
  • hostinger/client.go
  • hostinger/dns_record.go
  • hostinger/vps_data_sources.go
  • hostinger/vps_data_sources_validation.go
  • hostinger/vps_post_install_script.go
  • hostinger/vps_ssh_key_resource.go
📝 Walkthrough

Walkthrough

The module configuration now targets Go 1.25.0 and updates six indirect golang.org/x/* dependencies to newer versions.

Changes

Go toolchain updates

Layer / File(s) Summary
Toolchain and module version alignment
go.mod
The Go directive changes from 1.24.2 to 1.25.0, and indirect golang.org/x/mod, x/net, x/sync, x/sys, x/text, and x/tools dependencies are upgraded.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title is related to the change, but it's too generic to convey the main update to Go and indirect dependencies. Use a more specific title like 'Bump Go version and indirect dependencies'.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/bump-x-net-0.55.0

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zygintas
zygintas merged commit 2acbc7d into main Jul 22, 2026
1 of 2 checks passed
@zygintas
zygintas deleted the chore/bump-x-net-0.55.0 branch July 22, 2026 11:33

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@go.mod`:
- Line 3: Update the documentation or supported-platform matrix to state macOS
12 as the minimum supported version, replacing any macOS 11 references. Do not
modify CI workflows, which already derive the Go version from go.mod.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 8a917a83-4a93-4037-a42d-a7119c57b6db

📥 Commits

Reviewing files that changed from the base of the PR and between b10ccd2 and 09c3ef6.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (1)
  • go.mod

Comment thread go.mod
module github.com/hostinger/terraform-provider-hostinger

go 1.24.2
go 1.25.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

go version
go env GOTOOLCHAIN

rg -n --hidden -g '!.git' \
  -e '1\.24(\.[0-9]+)?' \
  -e 'setup-go|go-version|golang:' \
  -e 'darwin|macos|GOOS|GOARCH' .

Repository: hostinger/terraform-provider-hostinger

Length of output: 873


🏁 Script executed:

cat -n go.mod | head -50

Repository: hostinger/terraform-provider-hostinger

Length of output: 2674


🌐 Web query:

Go 1.25 macOS minimum version requirement

💡 Result:

Go 1.25 requires macOS 12 (Monterey) or later [1][2]. Support for macOS 11 and earlier versions was discontinued beginning with the Go 1.25 release [1][3]. Users requiring support for macOS 11 must continue using the Go 1.24 release series [4][3].

Citations:


🏁 Script executed:

python3 - <<'PY'
# Check the golang.org/x modules mentioned in lines 37-42
modules = [
    ("golang.org/x/mod", "v0.35.0"),
    ("golang.org/x/net", "v0.55.0"),
    ("golang.org/x/sync", "v0.20.0"),
    ("golang.org/x/sys", "v0.45.0"),
    ("golang.org/x/text", "v0.37.0"),
    ("golang.org/x/tools", "v0.44.0"),
]

print("golang.org/x module versions in go.mod:")
for mod, version in modules:
    print(f"  {mod} {version}")
PY

Repository: hostinger/terraform-provider-hostinger

Length of output: 382


🌐 Web query:

golang.org/x/mod v0.35.0 golang.org/x/net v0.55.0 minimum Go version requirements compatibility

💡 Result:

For the specified versions of the Go supplementary modules, the minimum Go version requirements are as follows: - golang.org/x/mod v0.35.0 requires Go 1.25.0 [1]. - golang.org/x/net v0.55.0 requires Go 1.25.0 [2]. In the Go module system, the go directive in the go.mod file declares the minimum version of the Go toolchain required to compile the module [3][4]. If your project depends on these modules, your own module's go.mod file must specify a Go version that is greater than or equal to the requirement of your dependencies [3][4]. If your environment uses a Go version older than what is specified in a dependency's go.mod file, the Go toolchain will refuse to use that module [3][4]. You can verify the minimum Go version requirement for any specific package version by checking its documentation on pkg.go.dev [1][2] or by inspecting the go directive directly in the repository's go.mod file [5].

Citations:


🏁 Script executed:

fd -type f \( -name "Dockerfile*" -o -name "*.dockerfile" -o -name ".python-version" -o -name ".nvmrc" \) -o -path "*docker*" -type f

Repository: hostinger/terraform-provider-hostinger

Length of output: 347


🏁 Script executed:

rg -n "golang:|FROM.*go|go.*1\.[0-9]+\.[0-9]+" --type dockerfile --type yaml --type json .

Repository: hostinger/terraform-provider-hostinger

Length of output: 211


🏁 Script executed:

find . -type f \( -name "Dockerfile*" -o -name "*.yml" -o -name "*.yaml" \) | head -20

Repository: hostinger/terraform-provider-hostinger

Length of output: 277


🏁 Script executed:

rg -n "golang:|FROM.*go|go.*1\.[0-9]+" --type yaml .

Repository: hostinger/terraform-provider-hostinger

Length of output: 176


🏁 Script executed:

cat -n .goreleaser.yml

Repository: hostinger/terraform-provider-hostinger

Length of output: 2411


🏁 Script executed:

cat -n .github/workflows/release.yml

Repository: hostinger/terraform-provider-hostinger

Length of output: 1877


🏁 Script executed:

cat -n .github/workflows/lint.yml

Repository: hostinger/terraform-provider-hostinger

Length of output: 830


🏁 Script executed:

fd -type f -name "README*" | head -5

Repository: hostinger/terraform-provider-hostinger

Length of output: 347


🏁 Script executed:

rg -i "macos|darwin|minimum|supported|version" README* -A 2 -B 2 2>/dev/null | head -50

Repository: hostinger/terraform-provider-hostinger

Length of output: 266


Verify Go version requirements are documented as macOS 12 minimum.

This upgrade is necessary—the updated golang.org/x/* dependencies (mod v0.35.0, net v0.55.0, etc.) require Go 1.25.0 (pkg.go.dev). Go 1.25 requires macOS 12 or later; if your documentation or supported platform matrix lists macOS 11, update it. CI workflows are already configured to follow go.mod automatically via go-version-file, so no CI changes are needed.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@go.mod` at line 3, Update the documentation or supported-platform matrix to
state macOS 12 as the minimum supported version, replacing any macOS 11
references. Do not modify CI workflows, which already derive the Go version from
go.mod.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants