Skip to content

Commit 1745542

Browse files
committed
work around release ops bug
release ops provide us with docker image that runs neo4j with version 5.21.0 instead of 5.20.0. they did promise that this is indeed the version to be released, and that this is indeed 5.20.0 and not 5.21.0, so what we're gonna do for now to not block the releae, we're treat it as if they sent the right version number of 5.20.0.
1 parent 47615bf commit 1745542

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

neo4j-adapter/src/main/java/org/neo4j/gds/compat/Neo4jVersion.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public enum Neo4jVersion {
4040
V_5_20,
4141
V_RC;
4242

43-
private static final int MINOR_DEV_VERSION = 20;
43+
private static final int MINOR_DEV_VERSION = 21;
4444

4545
static Neo4jVersion parse(String version) {
4646
var versionSegments = Pattern.compile("[.-]")
@@ -85,6 +85,9 @@ static Neo4jVersion parse(String version) {
8585
return Neo4jVersion.V_5_19;
8686
case 20:
8787
return Neo4jVersion.V_5_20;
88+
case 21:
89+
// todo: this is trying to work around a release ops bug. if you read this after more than a week, scream
90+
return Neo4jVersion.V_5_20;
8891
default:
8992
if (minorVersion >= MINOR_DEV_VERSION) {
9093
return Neo4jVersion.V_RC;

0 commit comments

Comments
 (0)