Skip to content

Commit beccde4

Browse files
committed
🐛 Attempt a workaround for pypa/hatch#1999
Which should help out with davep/hike#142
1 parent 2a52484 commit beccde4

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

Formula/hike.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ class Hike < Formula
110110

111111
def install
112112
virtualenv_create(libexec, "python3")
113+
ENV["SOURCE_DATE_EPOCH"] = "1451574000"
113114
virtualenv_install_with_resources
114115
end
115116

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ hike: clean
5454
pipenv install $@
5555
pipenv run poet -f $@ > Formula/$@.rb
5656
sed -i '' 's/Shiny new formula/A Markdown browser for the terminal/' Formula/$@.rb
57+
./fix-hatch "Formula/$@.rb"
5758

5859
.PHONY: journey2md
5960
journey2md: clean

fix-hatch

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
# Workaround for https://github.com/pypa/hatch/pull/1999
4+
FIX=' ENV["SOURCE_DATE_EPOCH"] = "1451574000"'
5+
6+
gsed -i "/virtualenv_install_with_resources/i \\$FIX" "$1"
7+
8+
### fix-hatch ends here

0 commit comments

Comments
 (0)