Skip to content

[BUG] syntax error near unexpected token `newline' #2365

@searge

Description

@searge

Description

I have tried to run ordinary task and got this error:

❯ task
/usr/bin/task: line 1: syntax error near unexpected token `newline'
/usr/bin/task: line 1: `!<arch>'

It was working Taskfile, so I checked what version I have and remove it:

Installed packages
Name            : go-task
Epoch           : 0
Version         : 3.44.1
Release         : 2.fc41
Architecture    : x86_64
Installed size  : 2.6 MiB
Source          : golang-github-task-3.44.1-2.fc41.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

Then I installed previous one:

Installed packages
Name            : go-task
Epoch           : 0
Version         : 3.39.2
Release         : 1.fc41
Architecture    : x86_64
Installed size  : 12.4 MiB
Source          : golang-github-task-3.39.2-1.fc41.src.rpm
From repository : fedora
Summary         : Provides the go-task task-runner binary
URL             : https://github.com/go-task/task
License         : MIT
Description     : A task runner / simpler Make alternative written in Go.
Vendor          : Fedora Project

And now it's working as usual:

❯ task
task: Available tasks for this project:
* build:               Build the Go application
...

Version

3.44.1-2.fc41.x86_64

Operating system

Fedora

Experiments Enabled

No response

Example Taskfile

Any Taskfile, even the simplest one

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: releasingChanges related to the release process.os: linuxIssues that affect users on Linux.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions