[PR #3594] [CLOSED] Auto pick current version from go.mod in goreleaser.yml #4786

Closed
opened 2026-05-05 14:48:43 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/3594
Author: @kevincobain2000
Created: 8/31/2023
Status: Closed

Base: devHead: dev


📝 Commits (2)

📊 Changes

2 files changed (+6 additions, -5 deletions)

View changed files

📝 .github/workflows/golangci-lint.yml (+3 -2)
📝 .github/workflows/goreleaser.yml (+3 -3)

📄 Description

Summary

Updates goreleaser.yml to auto pick go version from go.mod

WHY

Related to https://github.com/fatedier/frp/pull/3573, so you don't have to change the version each time when go.mod is changed.

I also considered updating golangci-lint.yml and add a matrix as below:

jobs:
  golangci:
    strategy:
      matrix:
        go-version: [mod, latest]
        os: [ubuntu-latest, macos-latest]

That will auto pick up go version from go.mod and the latest version that is released. But wasn't sure if you are trying to limit the number of jobs and wasn't on matrix for a special reason.

Action is using https://github.com/kevincobain2000/gobrew for more information.


🔄 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/fatedier/frp/pull/3594 **Author:** [@kevincobain2000](https://github.com/kevincobain2000) **Created:** 8/31/2023 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (2) - [`3be93e6`](https://github.com/fatedier/frp/commit/3be93e65105dda415173a18ad298ff618fca076d) Auto pick version from go.mod. https://github.com/fatedier/frp/pull/3573 - [`7296bcf`](https://github.com/fatedier/frp/commit/7296bcfffb8f3dba5f758d57c223aa3ab3ae41a8) Changed to mod version on golangci-lint.yml so it can be tested on pull req ### 📊 Changes **2 files changed** (+6 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/golangci-lint.yml` (+3 -2) 📝 `.github/workflows/goreleaser.yml` (+3 -3) </details> ### 📄 Description ### Summary Updates `goreleaser.yml` to auto pick go version from `go.mod` ### WHY Related to https://github.com/fatedier/frp/pull/3573, so you don't have to change the version each time when `go.mod` is changed. I also considered updating `golangci-lint.yml` and add a matrix as below: ``` jobs: golangci: strategy: matrix: go-version: [mod, latest] os: [ubuntu-latest, macos-latest] ``` That will auto pick up go version from `go.mod` and the `latest` version that is released. But wasn't sure if you are trying to limit the number of jobs and wasn't on matrix for a special reason. Action is using https://github.com/kevincobain2000/gobrew for more information. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 14:48:43 -06:00
Sign in to join this conversation.
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: github-starred/frp#4786
No description provided.