From 4652b6656240bd31bcc81c5024cf204e0db9a7b0 Mon Sep 17 00:00:00 2001 From: tobil4sk Date: Wed, 24 Aug 2022 01:53:02 +0100 Subject: [PATCH] Fix comment The way default names were handled changed, but this comment was never updated. --- src/haxelib/api/GlobalScope.hx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/haxelib/api/GlobalScope.hx b/src/haxelib/api/GlobalScope.hx index ac789c6b3..baad49dde 100644 --- a/src/haxelib/api/GlobalScope.hx +++ b/src/haxelib/api/GlobalScope.hx @@ -172,6 +172,7 @@ class GlobalScope extends Scope { final info = { final jsonContent = try File.getContent(resolved.path + Data.JSON) catch (_) null; + // `library` (i.e. the .name value) will be used as the name if haxelib.json has no "name" field Data.readData(jsonContent, jsonContent != null ? CheckSyntax : NoCheck, library); } @@ -182,8 +183,6 @@ class GlobalScope extends Scope { else resolved.path ); - // if info.name is not the placeholder for an empty name (i.e. unknown), use it, otherwise - // fall back to the value in the .name file addLine('-D ${info.name}=${info.version}'); // add dependencies to stack