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

Invalid snapshot filename breaks importing the Hydra packages #3213

Open
3 of 6 tasks
sneko opened this issue Aug 2, 2022 · 7 comments
Open
3 of 6 tasks

Invalid snapshot filename breaks importing the Hydra packages #3213

sneko opened this issue Aug 2, 2022 · 7 comments
Labels
bug Something is not working.

Comments

@sneko
Copy link

sneko commented Aug 2, 2022

Preflight checklist

Describe the bug

Hi,

I'm interested in the latest release (v1.11.9) to use RefreshTokenHook structs but it seems I cannot download it due to this error:

        github.com/ory/hydra/oauth2: create zip: oauth2/.snapshots/TestAuthCodeWithMockStrategy-strategy=jwt-case=2-description=should_pass_because_prompt=none_and_max_age_<_auth_time-should_call_refresh_token_hook_if_configured.json: malformed file path "oauth2/.snapshots/TestAuthCodeWithMockStrategy-strategy=jwt-case=2-description=should_pass_because_prompt=none_and_max_age_<_auth_time-should_call_refresh_token_hook_if_configured.json": invalid char '<'
oauth2/.snapshots/TestAuthCodeWithMockStrategy-strategy=opaque-case=2-description=should_pass_because_prompt=none_and_max_age_<_auth_time-should_call_refresh_token_hook_if_configured.json: malformed file path "oauth2/.snapshots/TestAuthCodeWithMockStrategy-strategy=opaque-case=2-description=should_pass_because_prompt=none_and_max_age_<_auth_time-should_call_refresh_token_hook_if_configured.json": invalid char '<'
make: *** [deps] Error 1

Indeed, you have 1 snapshot file having in its name <... making the process broken:
https://github.com/ory/hydra/blob/master/oauth2/.snapshots/TestAuthCodeWithMockStrategy-strategy=jwt-case=2-description=should_pass_because_prompt=none_and_max_age_%3C_auth_time-should_call_refresh_token_hook_if_configured.json

Thank you,

cc @grantzvolsky @aeneasr

Reproducing the bug

Use an Hydra package in a Go project and go mod tidy

Relevant log output

No response

Relevant configuration

No response

Version

v1.11.7

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Other

Additional Context

No response

@sneko sneko added the bug Something is not working. label Aug 2, 2022
@aeneasr
Copy link
Member

aeneasr commented Aug 2, 2022

This should be resolved on v2.x already :)

@sneko
Copy link
Author

sneko commented Aug 2, 2022

@aeneasr but what if I want to stick to v1.x? Do you plan to release a v1.11.10 with corrected name?

@aeneasr
Copy link
Member

aeneasr commented Aug 2, 2022

There are no more releases planned for the v1 branch, the next release will be v2.0-beta.1 :)

@sneko
Copy link
Author

sneko commented Aug 2, 2022

Oh ok, that's sad because yesterday you released the v1.11.9 with new modifications on structs for the RefreshTokenHook but if it can't be imported at the end :( (I need them to decode webhook and encode response)

I can still try to copy/paste the structs tree for the ones needed, or fork without snapshots...

@aeneasr
Copy link
Member

aeneasr commented Aug 2, 2022

We can also cherry-pick e437e3e to master but we won't release it as the change is non-functional and importing this package is an edge case :)

@aeneasr
Copy link
Member

aeneasr commented Aug 2, 2022

You can probably also work around it by not using a go module proxy so basically GOPROXY=direct

@sneko
Copy link
Author

sneko commented Aug 2, 2022

I think cherry-picking would do the trick!

Thank you,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

2 participants