Skip to content

go-task not finding CPU Arch with uname -p, needs uname -m #2368

Description

@symplrdudley

Description

I opened a Red Hat Bugzilla report for go-task not being able to detect the CPU Architecture because uname -p doesn't seem to report the CPU Arch, but a uname -m

They recommend using uname -m to get the CPU Architecture.

$ go-task --version
/usr/sbin/go-task: line 1: syntax error near unexpected token `newline'
/usr/sbin/go-task: line 1: `!<arch>'
dnf info go-task
Updating and loading repositories:
Repositories loaded.
Installed packages
Name            : go-task
Epoch           : 0
Version         : 3.44.1
Release         : 2.fc42
Architecture    : x86_64
Installed size  : 2.6 MiB
Source          : golang-github-task-3.44.1-2.fc42.src.rpm
From repository : updates
Summary         : Provides the go-task task-runner binary
URL             : https://github.com/go-task/task
License         : Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT
Description     : %{common_description}
Vendor          : Fedora Project

Version

3.44.1

Operating system

Fedora Linux 42

Experiments Enabled

No response

Example Taskfile

# https://taskfile.dev

version: '3'

vars:
  GREETING: Hello, World!

tasks:
  default:
    cmds:
      - echo "{{.GREETING}}"
    silent: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions