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

Reproducing https://github.com/cue-lang/cue/issues/2596 issue #2597

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bozaro
Copy link
Contributor

@bozaro bozaro commented Sep 15, 2023

Modification for reproducing #2596 issue

@@ -152,6 +154,7 @@ func resolveFile(
u.Scope = f
continue
}
time.Sleep(time.Millisecond * time.Duration(rand.Intn(10)+1))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A small delay to increase the reproducibility of the race.

@mvdan
Copy link
Member

mvdan commented Oct 25, 2023

Thanks for the PR to help reproduce the race; I think leaving this open as a draft is fine for now. We can revisit when we look at making the API safe for concurrent use.

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.

None yet

2 participants