Skip to content

Commit

Permalink
Reland "Move package_versions.bzl to defines/"
Browse files Browse the repository at this point in the history
Change-Id: I6a2480c0c34f9f1e374ea944d37adee14ffceefe
  • Loading branch information
TimotheusBachinger committed Oct 27, 2023
1 parent a9bf30b commit f9b0f79
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ rules_pkg_dependencies()
# | |
# '----------------------------------------------------------------------'
load(
"//:package_versions.bzl",
"//:defines/package_versions.bzl",
"CRYPT_SSL_SHA256",
"CRYPT_SSL_VERSION",
"FREETDS_SHA256",
Expand Down
2 changes: 1 addition & 1 deletion defines.make
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ GCC_VERSION := ${GCC_VERSION_MAJOR}.${GCC_VERSION_MINOR}.${GCC_VERSION_PA
# * update test_03_pip_interpreter_version
# * update omd/Licenses.csv, too.
# * you may need to regenerate the Pipfile.lock with "make --what-if Pipfile Pipfile.lock"
PYTHON_VERSION := $(shell sed -n 's|^PYTHON_VERSION = \"\(\S*\)\"$$|\1|p' $(REPO_PATH)/package_versions.bzl)
PYTHON_VERSION := $(shell sed -n 's|^PYTHON_VERSION = \"\(\S*\)\"$$|\1|p' $(REPO_PATH)/defines/package_versions.bzl)

# convenience stuff derived from PYTHON_VERSION
PY_ARRAY := $(subst ., ,$(PYTHON_VERSION))
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion omd/packages/Python/BUILD.Python.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make")
load("@omd_packages//:package_versions.bzl", "PYTHON_MAJOR_DOT_MINOR", "PYTHON_VERSION_MAJOR")
load("@omd_packages//:defines/package_versions.bzl", "PYTHON_MAJOR_DOT_MINOR", "PYTHON_VERSION_MAJOR")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion omd/packages/mod_wsgi/BUILD.mod_wsgi.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make")
load("@omd_packages//:package_versions.bzl", "PYTHON_MAJOR_DOT_MINOR")
load("@omd_packages//:defines/package_versions.bzl", "PYTHON_MAJOR_DOT_MINOR")

filegroup(
name = "all_srcs",
Expand Down
2 changes: 1 addition & 1 deletion omd/packages/net-snmp/BUILD.net-snmp.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make")
load("@omd_packages//:package_versions.bzl", "PYTHON_MAJOR_DOT_MINOR")
load("@omd_packages//:defines/package_versions.bzl", "PYTHON_MAJOR_DOT_MINOR")

filegroup(
name = "all_srcs",
Expand Down
2 changes: 1 addition & 1 deletion omd/packages/python3-modules/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load(":build-python3-modules.bzl", "build_cmd", "build_python_module", "create_requirements_file")
load("@python_modules//:requirements.bzl", "all_requirements")
load("@omd_packages//:package_versions.bzl", "PYTHON_MAJOR_DOT_MINOR")
load("@omd_packages//:defines/package_versions.bzl", "PYTHON_MAJOR_DOT_MINOR")
load("@omd_packages//:static_variables.bzl", "INTERNAL_PYPI_MIRROR")

config_setting(
Expand Down

0 comments on commit f9b0f79

Please sign in to comment.