"raco pkg install" rejects directory names and certain archive names with "." characters in them #4170
Labels
package system
Related to the package system (either raco pkg or the legacy PLaneT system) or similar tooling
What version of Racket are you using?
8.4
What program did you run?
What should have happened?
I expected this to be a valid package name as a directory package; I believe (but cannot readily test at the moment) that in somewhat previous versions of Racket (CS 7.x builds) I didn't encounter this problem.
If you got an error message, please include it here.
Please include any other relevant details
I tested this with different permutations of the directory name (e.g., "rosette-4.0", "rosette-4", "rosette4.0", and "rosette4") and found that directory names containing "." characters were rejected with the same error above.
I also did the same with .zip archives instead of the package expanded into a directory, just as another test (e.g., "
C:\Users\Etaoin Shrdlu\Hack>raco pkg install rosette-4.0.zip
"), with the same permutations of archive names (i.e., "rosette-4.0.zip", "rosette-4.zip", "rosette4.0.zip", and "rosette4.zip") and experienced the same behavior with these names with respect to error messages about disallowed characters in inferred package names as I did with the directory examples.I suspect after "raco pkg install" identifies the file extension, it considers other "." characters illegal in the rest of the package name. Some archive file extensions/suffixes can contain one or more "." characters: while ".zip" has only one, ".tar.gz" has two, and "raco pkg install" doesn't complain about e.g., "
raco pkg install rosette-4.tar.gz
" but does with "raco pkg install rosette-4.0.tar.gz
")OS: Windows 10
The text was updated successfully, but these errors were encountered: