[PR #1163] [MERGED] feat/bug-report-extended #1815

Closed
opened 2026-03-01 21:52:48 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/1163
Author: @catthehacker
Created: 5/14/2022
Status: Merged
Merged: 5/17/2022
Merged by: @mergify[bot]

Base: masterHead: feat/bug-report-extended


📝 Commits (3)

  • a6cab6e fix: connect to docker after checking configs
  • a53c883 feat: add vcs build info
  • 6c47c87 Merge branch 'master' into feat/bug-report-extended

📊 Changes

1 file changed (+23 additions, -6 deletions)

View changed files

📝 cmd/root.go (+23 -6)

📄 Description

Add vcsbuild info that was added in Go 1.18

example 1
go run main.go --bug-report
codespace:/workspaces/act> go run main.go --bug-report
act version:            v0.2.27-dev
GOOS:                   linux
GOARCH:                 amd64
NumCPU:                 4
Docker host:            DOCKER_HOST environment variable is unset/empty.
Sockets found:
        /var/run/docker.sock
Config files:           
Build info:
        Go version:            go1.18.1
        Module path:           command-line-arguments
        Main version:          
        Main path:             
        Main checksum:         
        Build settings:
                -compiler:            gc
                CGO_ENABLED:          1
                CGO_CFLAGS:           
                CGO_CPPFLAGS:         
                CGO_CXXFLAGS:         
                CGO_LDFLAGS:          
                GOARCH:               amd64
                GOOS:                 linux
                GOAMD64:              v1
Docker Engine:
        Engine version:        20.10.14+azure-1
        Engine runtime:        runc
        Cgroup version:        1
        Cgroup driver:         cgroupfs
        Storage driver:        overlay2
        Registry URI:          https://index.docker.io/v1/
        OS:                    Ubuntu 20.04.4 LTS (containerized)
        OS type:               linux
        OS version:            20.04
        OS arch:               x86_64
        OS kernel:             5.4.0-1074-azure
        OS CPU:                4
        OS memory:             7957 MB
        Security options:
                name=apparmor
                name=seccomp,profile=default

codespace:/workspaces/act> 
example 2
# built while git repo is clean, indicated by vcs.modified
go build -ldflags="-X main.version=v0.2.27" -o /go/bin/act
act --bug-report
codespace:/workspaces/act> act --bug-report
act version:            v0.2.27
GOOS:                   linux
GOARCH:                 amd64
NumCPU:                 4
Docker host:            DOCKER_HOST environment variable is unset/empty.
Sockets found:
        /var/run/docker.sock
Config files:           
Build info:
        Go version:            go1.18.1
        Module path:           github.com/nektos/act
        Main version:          (devel)
        Main path:             github.com/nektos/act
        Main checksum:         
        Build settings:
                -compiler:            gc
                -ldflags:             -X main.version=v0.2.27
                CGO_ENABLED:          1
                CGO_CFLAGS:           
                CGO_CPPFLAGS:         
                CGO_CXXFLAGS:         
                CGO_LDFLAGS:          
                GOARCH:               amd64
                GOOS:                 linux
                GOAMD64:              v1
                vcs:                  git
                vcs.revision:         a53c883b4176b463031676ab045e0ec7605ba86b
                vcs.time:             2022-05-14T10:58:50Z
                vcs.modified:         false
Docker Engine:
        Engine version:        20.10.14+azure-1
        Engine runtime:        runc
        Cgroup version:        1
        Cgroup driver:         cgroupfs
        Storage driver:        overlay2
        Registry URI:          https://index.docker.io/v1/
        OS:                    Ubuntu 20.04.4 LTS (containerized)
        OS type:               linux
        OS version:            20.04
        OS arch:               x86_64
        OS kernel:             5.4.0-1074-azure
        OS CPU:                4
        OS memory:             7957 MB
        Security options:
                name=apparmor
                name=seccomp,profile=default

🔄 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/nektos/act/pull/1163 **Author:** [@catthehacker](https://github.com/catthehacker) **Created:** 5/14/2022 **Status:** ✅ Merged **Merged:** 5/17/2022 **Merged by:** [@mergify[bot]](https://github.com/apps/mergify) **Base:** `master` ← **Head:** `feat/bug-report-extended` --- ### 📝 Commits (3) - [`a6cab6e`](https://github.com/nektos/act/commit/a6cab6eb5f30b14106ea9fb91e12e0229ffc73d1) fix: connect to docker **after** checking configs - [`a53c883`](https://github.com/nektos/act/commit/a53c883b4176b463031676ab045e0ec7605ba86b) feat: add vcs build info - [`6c47c87`](https://github.com/nektos/act/commit/6c47c87c0deeb4dbad6a7a5577271ba214514b1d) Merge branch 'master' into feat/bug-report-extended ### 📊 Changes **1 file changed** (+23 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `cmd/root.go` (+23 -6) </details> ### 📄 Description Add `vcsbuild` info that was added in Go 1.18 <details> <summary>example 1</summary> ```sh go run main.go --bug-report ``` ``` codespace:/workspaces/act> go run main.go --bug-report act version: v0.2.27-dev GOOS: linux GOARCH: amd64 NumCPU: 4 Docker host: DOCKER_HOST environment variable is unset/empty. Sockets found: /var/run/docker.sock Config files: Build info: Go version: go1.18.1 Module path: command-line-arguments Main version: Main path: Main checksum: Build settings: -compiler: gc CGO_ENABLED: 1 CGO_CFLAGS: CGO_CPPFLAGS: CGO_CXXFLAGS: CGO_LDFLAGS: GOARCH: amd64 GOOS: linux GOAMD64: v1 Docker Engine: Engine version: 20.10.14+azure-1 Engine runtime: runc Cgroup version: 1 Cgroup driver: cgroupfs Storage driver: overlay2 Registry URI: https://index.docker.io/v1/ OS: Ubuntu 20.04.4 LTS (containerized) OS type: linux OS version: 20.04 OS arch: x86_64 OS kernel: 5.4.0-1074-azure OS CPU: 4 OS memory: 7957 MB Security options: name=apparmor name=seccomp,profile=default codespace:/workspaces/act> ``` </details> <details> <summary>example 2</summary> ```sh # built while git repo is clean, indicated by vcs.modified go build -ldflags="-X main.version=v0.2.27" -o /go/bin/act act --bug-report ``` ``` codespace:/workspaces/act> act --bug-report act version: v0.2.27 GOOS: linux GOARCH: amd64 NumCPU: 4 Docker host: DOCKER_HOST environment variable is unset/empty. Sockets found: /var/run/docker.sock Config files: Build info: Go version: go1.18.1 Module path: github.com/nektos/act Main version: (devel) Main path: github.com/nektos/act Main checksum: Build settings: -compiler: gc -ldflags: -X main.version=v0.2.27 CGO_ENABLED: 1 CGO_CFLAGS: CGO_CPPFLAGS: CGO_CXXFLAGS: CGO_LDFLAGS: GOARCH: amd64 GOOS: linux GOAMD64: v1 vcs: git vcs.revision: a53c883b4176b463031676ab045e0ec7605ba86b vcs.time: 2022-05-14T10:58:50Z vcs.modified: false Docker Engine: Engine version: 20.10.14+azure-1 Engine runtime: runc Cgroup version: 1 Cgroup driver: cgroupfs Storage driver: overlay2 Registry URI: https://index.docker.io/v1/ OS: Ubuntu 20.04.4 LTS (containerized) OS type: linux OS version: 20.04 OS arch: x86_64 OS kernel: 5.4.0-1074-azure OS CPU: 4 OS memory: 7957 MB Security options: name=apparmor name=seccomp,profile=default ``` </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:52:48 +03: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
starred/act#1815
No description provided.