Bug 2386441

Summary: "syntax error near unexpected token `newline'" when running go-task
Product: [Fedora] Fedora Reporter: Diego Herrera <dherrera>
Component: golang-github-taskAssignee: Mark E. Fuller <mark.e.fuller>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 42CC: go-sig, mark.e.fuller
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-08-05 00:34:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Diego Herrera 2025-08-04 22:49:32 UTC
after installing the go-task program, when trying to run it, it crashes and doesn't do any work.

Reproducible: Always

Steps to Reproduce:
1. dnf install go-task
2. run go-task
Actual Results:
/usr/bin/go-task: line 1: syntax error near unexpected token `newline'
/usr/bin/go-task: line 1: `!<arch>'


Expected Results:
the app actually running

Additional Information:
From what I read[0], this patterns usually happen when trying to excecute a go library object instead of an application.


[0] https://gist.github.com/deefdragon/2336e2404c468c3c59f1ef670745a920

Comment 1 Mark E. Fuller 2025-08-05 00:34:41 UTC

*** This bug has been marked as a duplicate of bug 2386266 ***