Skip to content

Add testing to GlobWindowsPaths - #2

Merged
iamazeem merged 3 commits into
iamazeem:5099-gh-release-create-upload-expand-glob-patterns-on-windowsfrom
cli:jtmcg/add-testing-to-globbing
Feb 21, 2025
Merged

iamazeem merged 3 commits into
iamazeem:5099-gh-release-create-upload-expand-glob-patterns-on-windowsfrom
cli:jtmcg/add-testing-to-globbing

Conversation

@jtmcg

@jtmcg jtmcg commented Feb 13, 2025

Copy link
Copy Markdown

Here's my tests example. Note, I'm not actually testing that filepath.Glob() is doing what its supposed to be doing - I'm checking the function's interfaces of patterns in and matches out. These tests actually show that the make comment doesn't actually work, too, which is a bonus.

Comment thread pkg/cmdutil/args.go
Comment thread pkg/cmdutil/args_test.go
Comment thread pkg/cmdutil/args_test.go Outdated
@jtmcg
jtmcg force-pushed the jtmcg/add-testing-to-globbing branch from 29b35eb to 90b4e9a Compare February 21, 2025 17:30
@jtmcg

jtmcg commented Feb 21, 2025

Copy link
Copy Markdown
Author

Alright, I've backed out of the change. Let's merge this into your PR branch so that we can continue the discussion there 🙂

@iamazeem
iamazeem merged commit 8748bb0 into iamazeem:5099-gh-release-create-upload-expand-glob-patterns-on-windows Feb 21, 2025
iamazeem pushed a commit that referenced this pull request Jul 11, 2026
The documented dnf install lines pin resolution to the gh-cli repo
with --repo gh-cli. That repo only ships the gh package, so on a
fresh Fedora install without git already present the install fails
with "nothing provides git needed by gh-2.87.3-1.x86_64 from gh-cli"
(cli#12808). Dropping --repo lets dnf pull git from the system repos
while still installing gh from gh-cli.

The maintainer suggested this in the issue thread after spotting
that other projects (docker, vagrant) use addrepo without the
restrictive --repo flag.

Closes cli#12808

Signed-off-by: Charlie Tonneslan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants