Skip to content

cant get tar from core utils to work #2567

@kmpm

Description

@kmpm

Description

I am trying to tar files on a windows 11 machine but keep getting errors.
Even with the most minimal tar I keep get errors about Rel: can't make <whatever file> relative to

Create the provided taskfile in an empty directory and call it Taskfile.yml

When I do this in a directory called D:\taskfile-uroot and run task I get...

task: [default] tar -cf test.tar Taskfile.yml
task: Failed to run task "default": Rel: can't make D:\taskfile-uroot\Taskfile.yml relative to

What I expect to get is a file called test.tar containing the taskfile.

Version

3.45.5

Operating system

Windows 11 Pro 24H2

Experiments Enabled

No response

Example Taskfile

# https://taskfile.dev
version: '3'
tasks:
  default:
    cmds:
      - tar -cf test.tar Taskfile.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    dep: u-root/u-rootIssues related to the upstream core utils used by Task.

    Type

    No fields configured for bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions