[PR #29] [MERGED] utils: Add +build directive #38

Closed
opened 2026-03-02 05:08:17 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/goodhosts/hostsfile/pull/29
Author: @cfergeau
Created: 1/3/2022
Status: Merged
Merged: 1/5/2022
Merged by: @luthermonson

Base: mainHead: go1.16


📝 Commits (1)

  • b103827 utils: Add +build directive

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 utils.go (+1 -0)

📄 Description

go:build is new in golang 1.17, since it also supports the older +build
directive, we can add both. This makes it possible to build
goodhosts/hostsfile with golang 1.16


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/goodhosts/hostsfile/pull/29 **Author:** [@cfergeau](https://github.com/cfergeau) **Created:** 1/3/2022 **Status:** ✅ Merged **Merged:** 1/5/2022 **Merged by:** [@luthermonson](https://github.com/luthermonson) **Base:** `main` ← **Head:** `go1.16` --- ### 📝 Commits (1) - [`b103827`](https://github.com/goodhosts/hostsfile/commit/b10382758cd4d32453637d930de737bc87cfe87c) utils: Add +build directive ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `utils.go` (+1 -0) </details> ### 📄 Description go:build is new in golang 1.17, since it also supports the older +build directive, we can add both. This makes it possible to build goodhosts/hostsfile with golang 1.16 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 05:08:17 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hostsfile#38
No description provided.