Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh release create wildcard '*' not working on windows #5099

Copy link
Copy link

Description

@jamesjohnmcguire
Issue body actions

Describe the bug

gh --version
gh version 2.4.0 (2021-12-21)

As the title states, I can't seem to find a way to submit multiple files with a wildcard. Straight from the docs, this sample command fails:
gh release create v1.2.3 ./dist/*.tgz

with the following message:
CreateFile ./dist/*.tgz: The filename, directory name, or volume label syntax is incorrect.

If I run the command, with an individual file, it works such as:
gh release create v1.2.3 dist\Tool-Linux.tgz

It works.

If I open up a Linux terminal, such as git bash, and try the command in there, it works.

Steps to reproduce the behavior

  1. Type this
    dir /b dist

  2. View the output
    Tool-Linux.tgz
    Tool-MacOS.tgz
    Tool-Windows.tgz

  3. Type this
    gh release create v1.2.3 ./dist/*.tgz

  4. View the output

  5. See error
    CreateFile ./dist/*.tgz: The filename, directory name, or volume label syntax is incorrect.

I also tried:
gh release create v1.2.3 .\dist*.tgz
gh release create v1.2.3 dist*.tgz

cd dist
gh release create v1.2.3 *.tgz

with no succcess

Expected vs actual behavior

A successfully submited release tag

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingSomething isn't workinggh-releaserelating to the gh release commandrelating to the gh release commandhelp wantedContributions welcomeContributions welcomepriority-2Affects more than a few users but doesn't prevent core functionsAffects more than a few users but doesn't prevent core functions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

Morty Proxy This is a proxified and sanitized view of the page, visit original site.