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

fix testament regression: installed testament works again with testament r path #16767

Merged
merged 2 commits into from
Jan 20, 2021

Conversation

timotheecour
Copy link
Member

@timotheecour timotheecour commented Jan 20, 2021

to mimic installing testament and reproduce the bug that gets fixed here, do as follows:
nim c -o:/tmp/testament2 testament/testament.nim
move . to somewhere else to make sure the source files can't be read anymore

then:
mkdir -p tests/somedir
echo "doAssert 1 == 1" > tests/somedir/texample.nim

now these work:
/tmp/testament2 r tests/somedir/texample.nim
/tmp/testament2 r $PWD/tests/somedir/texample.nim
/tmp/testament2 r /patho/tests/somedir2/texample2.nim # can use external tests not relative to PWD

this doesn't work, because we can't get the category:
/tmp/testament2 r tests/texample.nim

(pre-existing issue IIRC, this could be relaxed in future work, by making . a special category of its own for eg)

@Araq Araq merged commit 2b5841c into nim-lang:devel Jan 20, 2021
@timotheecour timotheecour deleted the pr_fix_testament_installed branch January 20, 2021 16:06
ardek66 pushed a commit to ardek66/Nim that referenced this pull request Mar 26, 2021
…ent r path (nim-lang#16767)

* fix testament regression: installed testament works again with testament r path

* fixup
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.

can testament be installed?
3 participants