Repository navigation
fix: 生成した時刻を SOURCE_DATE_EPOCH から決めない - #35
Merged
Merged
Conversation
nix develop のシェルは SOURCE_DATE_EPOCH に 1980 年の値を入れるので、配信も手元の生成もトップに 1980-01-01 と出ていた。テストで時刻を固定する変数を CODEVIEW_BUILT_AT に替える。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
変更内容
SOURCE_DATE_EPOCHを使っていた。nix developのシェルはこれに 1980 年の値(315532800)を入れるので、nix develop経由で動く配信と手元の生成のトップにbuilt 1980-01-01 09:00と出ていたCODEVIEW_BUILT_ATに替える保証
SOURCE_DATE_EPOCHから決めない →tests/test_build.py::test_build_time_ignores_source_date_epoch静的確認結果
nix develop -c pytest -q: 85 passed