Skip to content

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

Description

@dkyeremeh

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions