-
-
Notifications
You must be signed in to change notification settings - Fork 21
Final improvements to make tests pass on GitHub CI #86
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
Conversation
Can we set |
Thanks for the idea. In theory, it's set here: Lines 97 to 100 in c430b5b
which should get propagated through, but I'm not sure it's working correctly |
@tarleb is the solution to change function Meta (meta)
if meta.draft and meta.draft ~= '' then
local epoch = os.getenv 'SOURCE_DATE_EPOCH'
and os.time { year = 1970, month = 1, day = 1, hour = 0, min = 0,
sec = tonumber(os.getenv 'SOURCE_DATE_EPOCH') }
or os.time()
meta.article.doi = '10.xxxxxx/draft'
meta.article.issue = '¿ISSUE?'
meta.article.volume = '¿VOL?'
meta.published = 'unpublished'
meta.published_parts = os.date('*t', epoch)
return meta
end
end
though when I do this, the published date becomes something from 2009, is that sounding correct? |
👍 that looks like the right thing to do. |
@tarleb okay, all done |
Awesome, thanks!! |
This is the last PR that finally makes the unit tests work. This PR also adds several other notes to help future contributors understand the workflow, and get it running locally.
Details on an issue we solved during this PR related to SOURCE_DATE_EPOCH
The
expected-draft/paper.tex
which outputs the current year. This gets there because of the following code:inara/data/templates/default.latex
Line 155 in c430b5b
self-citations
is added ininara/data/filters/self-citation.lua
Line 33 in c430b5b
inara/data/filters/draft.lua
Line 8 in c430b5b
inara/data/filters/time.lua
Line 28 in c430b5b
SOURCE_DATE_EPOCH
ininara/Makefile
Lines 97 to 100 in c430b5b
I think it's probably a fair compromise to remind ourselves once per year to update this rather than hacking more conditionals in there (at least on this pass)