From 9e5ca525f79206d6d56cf1ee597b2d97e92b9f96 Mon Sep 17 00:00:00 2001 From: Greg Becker Date: Wed, 23 Aug 2023 17:23:35 -0400 Subject: do not warn for invalid package name on repo.yaml if subdirectory: '' (#39439) --- lib/spack/spack/repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/spack/spack/repo.py b/lib/spack/spack/repo.py index 1882645f85..a4362d9d31 100644 --- a/lib/spack/spack/repo.py +++ b/lib/spack/spack/repo.py @@ -387,7 +387,7 @@ class FastPackageChecker(collections.abc.Mapping): # Warn about invalid names that look like packages. if not nm.valid_module_name(pkg_name): - if not pkg_name.startswith("."): + if not pkg_name.startswith(".") and pkg_name != "repo.yaml": tty.warn( 'Skipping package at {0}. "{1}" is not ' "a valid Spack module name.".format(pkg_dir, pkg_name) -- cgit v1.2.3-70-g09d2