Skip to content

Commit 019fca9

Browse files
committed
generate requirements.txt with '# via -r -' annotation for dependencies
Signed-off-by: mahdikhashan <mahdikhashan1@gmail.com>
1 parent 6fbfc08 commit 019fca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/resources/scripts/test-requirements.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ check_requirements() {
66

77
temp_file=$(mktemp)
88

9-
pip-compile --output-file=- "$req_in" > "$temp_file"
9+
pip-compile - < "$req_in" --output-file="$temp_file" --annotate
1010

1111
# Compare the generated file with the existing requirements.txt
1212
if diff -q "$temp_file" "$req_txt" >/dev/null; then

0 commit comments

Comments
 (0)