Skip to content

Conversation

@VoodooChild99
Copy link

@VoodooChild99 VoodooChild99 commented Jan 7, 2026

Currently outputBuildId is extracted reversely using a negative index -3. However, sometimes this can go wrong. For example, I'm using minted and may get something like /project/xxx/user/xxx/build/xxxx/output/_minted/xxx. In this case, output is extracted, which is not expected.

This PR extracts outputBuildId using a positive index 6 to avoid the above issue.

This might be related with #297, because I also got the error code 500 before applying the fix.

@iamhyc
Copy link
Member

iamhyc commented Jan 7, 2026

@VoodooChild99 Hi, thanks for the contribution!

I think it is better to fix the problem with regex, for example, .*\/build\/([^\/]+)\/.*

{F9E287DA-AAA2-43E0-8C0C-B11756C242E0}

@VoodooChild99
Copy link
Author

@iamhyc Thank you for reviewing this! Yes I agree, regex is more straightforward. I've pushed a new commit for this.

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