@@ -124,6 +124,10 @@ function build_tarballs(ARGS, src_name, src_version, sources, script,
124
124
return nothing
125
125
end
126
126
127
+ if ! Base. isidentifier (src_name)
128
+ error (" Package name \" $(src_name) \" is not a valid identifier" )
129
+ end
130
+
127
131
# Throw an error if we're going to build for platforms not supported by Julia v1.5-.
128
132
if any (p -> arch (p) == " armv6l" || (Sys. isapple (p) && arch (p) == " aarch64" ), platforms) && minimum (VersionNumber (rng. lower. t) for rng in PKG_VERSIONS. semver_spec (julia_compat). ranges) < v " 1.6"
129
133
error (" Experimental platforms cannot be used with Julia v1.5-.\n Change `julia_compat` to require at least Julia v1.6" )
@@ -475,9 +479,6 @@ function register_jll(name, build_version, dependencies, julia_compat;
475
479
gh_username= gh_get_json (DEFAULT_API, " /user" ; auth= gh_auth)[" login" ],
476
480
lazy_artifacts:: Bool = false ,
477
481
kwargs... )
478
- if ! Base. isidentifier (name)
479
- error (" Package name \" $(name) \" is not a valid identifier" )
480
- end
481
482
# Calculate tree hash of wrapper code
482
483
wrapper_tree_hash = bytes2hex (Pkg. GitTools. tree_hash (code_dir))
483
484
wrapper_commit_hash = LibGit2. head (code_dir)
@@ -1079,9 +1080,6 @@ function build_jll_package(src_name::String,
1079
1080
julia_compat:: String = DEFAULT_JULIA_VERSION_SPEC,
1080
1081
lazy_artifacts:: Bool = false ,
1081
1082
init_block = " " )
1082
- if ! Base. isidentifier (src_name)
1083
- error (" Package name \" $(src_name) \" is not a valid identifier" )
1084
- end
1085
1083
# Make way, for prince artifacti
1086
1084
mkpath (joinpath (code_dir, " src" , " wrappers" ))
1087
1085
0 commit comments