Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Glob support for ** using mattn/go-zglob #40

Open
dkyeremeh opened this issue Jan 20, 2024 · 0 comments
Open

Glob support for ** using mattn/go-zglob #40

dkyeremeh opened this issue Jan 20, 2024 · 0 comments

Comments

@dkyeremeh
Copy link

dkyeremeh commented Jan 20, 2024

TLDR;

I'm trying to use drone-gitea-release to publish android builds to my Gitea instance, but it does not support ** glob pattern.

DETAILS

When I set the value of files to anything with **, it doesn't match the expected files even though ** is a standard glob pattern.

Example: the file android/app/build/outputs/bundle/experimentalPlayDebug/app-experimental-play-debug.aab cannot be matched with android/app/build/outputs/**/*.aab.

The name of the android build files can be different depending on some conditions, so it's not feasible to hard-code it as the value of the files option

POSSIBLE SOLUTION

After some digging, I discovered that filepath.Glob does not support ** Link to issue. mattn/go-zglob was recommended instead.

I would have loved to create a PR, but I have no experience in Golang

@dkyeremeh dkyeremeh changed the title Support for ** in file using mattn/go-zglob Glob support for ** using mattn/go-zglob Jan 20, 2024
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

No branches or pull requests

1 participant