Wildcards for file uploads when creating release do not work on Windows 11 / Powershell
Checklist
-
I'm using the latest version of the extension (Run glab --version)- Extension version: 1.51.0
-
Operating system and version: Win 11 Pro 23H2 Build 22631.4391 -
Gitlab.com or self-managed instance? self-managed instance -
GitLab version (if self-managed) 17.5.1 (Use the versionendpoint, like this: gitlab.my-company.com/api/v4/version) -
I have performed glab auth statusto check for authentication issues -
Run the command in debug mode (like DEBUG=true glab mr list) and attach any useful output- Does not seem to work
Summary
Using wildcards does not work in my setup:
glab release create v1.0.1 .\output\*.md
CreateFile .\output\*.md: The filename, directory name, or volume label syntax is incorrect.
PS C:\Data\Diverses\release-test (main)> glab release create v1.0.1 .\output\file1.md
• Validating tag v1.0.1
• Tag does not exist.
• No ref provided. Creating the tag from the latest state of the default branch.
• using default branch "main" as ref
? Release title (optional)
Environment
- OS: Win 11 Pro AMD 64
- SHELL: Powershell
- TERM: Windows Terminal
- GLAB: 1.51.0
Other:
Steps to reproduce
- Setup a markdown file in subdirectory (my case called output)
- Try to upload it to a release using a wildcard
glab release create v1.0.1 .\output\*.md - Get error
CreateFile .\output\*.md: The filename, directory name, or volume label syntax is incorrect.
What is the current bug behavior?
Error message CreateFile .\output\*.md: The filename, directory name, or volume label syntax is incorrect.
What is the expected correct behavior?
Create release and upload file
Relevant logs and/or screenshots
Possible fixes
Edited by Christoph Zaugg
