Skip to content

Commit

Permalink
Continue to use hxae 3 for compiling the server for now
Browse files Browse the repository at this point in the history
The legacy server code requires changes in order to run on haxe 4
  • Loading branch information
tobil4sk committed Apr 12, 2024
1 parent a306526 commit 888cdc8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ aws-ndll:
SAVE ARTIFACT /workspace/haxelib_global/aws-sdk-neko/*/ndll/Linux64/aws.ndll

haxelib-server-builder:
FROM haxe:4.3
FROM haxe:3.4

WORKDIR /workspace
COPY lib/record-macros lib/record-macros
Expand Down Expand Up @@ -516,7 +516,7 @@ ci-tests:
COPY *.hxml .

# for package.hxml
COPY haxelib.json README.md .
COPY haxelib.json README.md .
COPY +run.n/run.n .

COPY +ci-runner/ci.n bin/ci.n
Expand Down
4 changes: 2 additions & 2 deletions src/haxelib/Data.hx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ using StringTools;
using Lambda;

/** The level of strictness with which a `haxelib.json` check is performed. **/
enum abstract CheckLevel(Int) {
#if haxe4 enum #else @:enum #end abstract CheckLevel(Int) {
/** No check is performed. **/
var NoCheck = 0;
/** Only the syntax of the file is checked. **/
Expand Down Expand Up @@ -183,7 +183,7 @@ typedef DefineDocumentation = {
}

/** An abstract enum representing the different Licenses a project can have. **/
enum abstract License(String) to String {
#if haxe4 enum #else @:enum #end abstract License(String) to String {
var Gpl = 'GPL';
var Lgpl = 'LGPL';
var Mit = 'MIT';
Expand Down
2 changes: 1 addition & 1 deletion src/haxelib/VersionData.hx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package haxelib;

/** Abstract enum representing the types of Vcs systems that are supported. **/
enum abstract VcsID(String) to String {
#if haxe4 enum #else @:enum #end abstract VcsID(String) to String {
var Hg = "hg";
var Git = "git";

Expand Down

0 comments on commit 888cdc8

Please sign in to comment.