Skip to content

Commit

Permalink
feat: add dont-edit comment to lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
betaboon authored and jvolkman committed Jun 14, 2023
1 parent b6e3b3d commit 91e10c1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/pdm/example_lock.bzl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This file is generated by rules_pycross.
# It is not intended for manual editing.

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@jvolkman_rules_pycross//pycross:defs.bzl", "pycross_wheel_build", "pycross_wheel_library", "pypi_file")
Expand Down
3 changes: 3 additions & 0 deletions examples/poetry/example_lock.bzl
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This file is generated by rules_pycross.
# It is not intended for manual editing.

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@jvolkman_rules_pycross//pycross:defs.bzl", "pycross_wheel_build", "pycross_wheel_library", "pypi_file")
Expand Down
3 changes: 3 additions & 0 deletions pycross/private/tools/bzl_lock_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,9 @@ def w(*text):

# Header stuff
w(
'# This file is generated by rules_pycross.',
'# It is not intended for manual editing.',
'',
'load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")',
'load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")',
'load("@jvolkman_rules_pycross//pycross:defs.bzl", "pycross_wheel_build", "pycross_wheel_library", "pypi_file")',
Expand Down

0 comments on commit 91e10c1

Please sign in to comment.