mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
make sure the app and Pkg-Config have different names
otherwise there could be naming conflicts. for the mono tests, we must rename the app module to our tests continue to work
This commit is contained in:
parent
8b4c4ca50f
commit
99a95b7200
2 changed files with 6 additions and 3 deletions
|
@ -908,13 +908,16 @@ where
|
|||
D::Doc: Clone,
|
||||
A: Clone,
|
||||
{
|
||||
use roc_module::ident::ModuleName;
|
||||
|
||||
if PRETTY_PRINT_IR_SYMBOLS {
|
||||
alloc.text(format!("{:?}", symbol))
|
||||
} else {
|
||||
let text = format!("{}", symbol);
|
||||
|
||||
if text.starts_with('.') {
|
||||
alloc.text("Test").append(text)
|
||||
if text.starts_with(ModuleName::APP) {
|
||||
let name: String = text.trim_start_matches(ModuleName::APP).into();
|
||||
alloc.text("Test").append(name)
|
||||
} else {
|
||||
alloc.text(text)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue