Following PR #65 basename can be detected as a directory, most commonly a local git clone. Ensure that the trailing slash is stripped from basename before processing as sensible input to sanitize_subdir(). Also enhance santize_subdir() to not care if there is a trailing slash.
ERROR:obs-service-go_modules:Invalid path: /home/adrian/space/home:adrianSuSE:branches:devel:Factory:git-workflow/gitea/gitea-src-1.24.0-rc0/go.mod not subdir of /tmp/tmp3ri9md1t
Per @adrianschroeter, the above run "expanded the full path to archive but failed to strip it when comparing it in the tempdir."
Following PR #65
basenamecan be detected as a directory, most commonly a local git clone. Ensure that the trailing slash is stripped frombasenamebefore processing as sensible input tosanitize_subdir(). Also enhancesantize_subdir()to not care if there is a trailing slash.Per @adrianschroeter, the above run "expanded the full path to archive but failed to strip it when comparing it in the tempdir."