mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Complain about using 'git clone'
This commit is contained in:
parent
67202bfa7b
commit
a8e5c7e67e
1 changed files with 6 additions and 0 deletions
|
@ -784,6 +784,12 @@ class App(TestSuite):
|
||||||
% (custom_helper, official_helpers[custom_helper] or "?")
|
% (custom_helper, official_helpers[custom_helper] or "?")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@test()
|
||||||
|
def git_clone_usage(app):
|
||||||
|
cmd = f"grep -I 'git clone' '{app.path}'/scripts/install '{app.path}'/scripts/_common.sh 2>/dev/null | grep -qv 'xxenv\|rbenv\|oracledb'"
|
||||||
|
if os.system(cmd) == 0:
|
||||||
|
yield Info("Using 'git clone' is not recommended ... most forge do provide the ability to download a proper archive of the code for a specific commit. Please use the 'sources' resource in the manifest.toml in combination with ynh_setup_source.")
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
def helpers_version_requirement(app):
|
def helpers_version_requirement(app):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue