Skip to content

Minimal version check critical error #30

@raucoule1u

Description

@raucoule1u

Since the version v0.4.10, the java-ipfs-api library is no longer usable.
In cause the following code :

       try {
            String ipfsVersion = version();
            String[] parts = ipfsVersion.split("\\.");
            String[] minParts = MIN_VERSION.split("\\.");
            if (parts[0].compareTo(minParts[0]) < 0
                    || parts[1].compareTo(minParts[1]) < 0
                    || parts[2].compareTo(minParts[2]) < 0)
                throw new IllegalStateException("You need to use a more recent version of IPFS! >= " + MIN_VERSION);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }

See pull request : ipfs/java-ipfs-api#29

The library is not compatible with version v0.4.10 while this issue is not fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions