HaxeFoundation / HaxeFoundation/haxe

Colon `:` in a resource name breaks `haxe.Resource`

Open
#6,901 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

See #6895
Using colon makes a garbage of a resource name
```
-resource testResource.txt@:testResource
```
Generates this file in resources directory when targeting php:
```
bin/php/res $ ls -la
-rw-r--r-- 1 alexanderkuz domain users 7 12 Mar 18:30 -x58testResource
```
That name comes from https://github.com/HaxeFoundation/haxe/blob/bf0de81c9fea9d67a75ce0b01b4c777d66e27253/codegen.ml#L124
So I believe other targets may be affected too.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.