8
37
Fork
You've already forked forgejo-api
18

Add notice for supported Forgejo version #163

Open
opened 2026年07月13日 11:56:20 +02:00 by noxifoxi · 5 comments

Hey,
Today, I encountered some issues when trying to use version 0.11.0 of this crate on my Forgejo 15.0.4 instance.

I suggest adding a notice to the readme file indicating which Forgejo versions are compatible with the current crate version, as there is no obvious information about this at the moment.

Hey, Today, I encountered some issues when trying to use version 0.11.0 of this crate on my Forgejo 15.0.4 instance. I suggest adding a notice to the readme file indicating which Forgejo versions are compatible with the current crate version, as there is no obvious information about this at the moment.
Contributor
Copy link

Can you describe the concrete issues you encountered? Just so I have a clearer idea what is going on

Can you describe the concrete issues you encountered? Just so I have a clearer idea what is going on
Contributor
Copy link

Ok, nvm. I think the best path forward is, as you mentioned, to just state the single Forgejo version, that the current version of the crate supports. We should make it clear, that essentially every new version of the crate supporting a new Forgejo version presents a breaking change. Users should only update the crate if they want to migrate to a new Forgejo version. forgejo-apijust isn't built to support multiple Forgejo versions simultaneously and backwards compatibility only goes as far as Forgejo itself delivers it

Ok, nvm. I think the best path forward is, as you mentioned, to just state the single Forgejo version, that the current version of the crate supports. We should make it clear, that essentially every new version of the crate supporting a new Forgejo version presents a breaking change. Users should only update the crate if they want to migrate to a new Forgejo version. `forgejo-api`just isn't built to support multiple Forgejo versions simultaneously and backwards compatibility only goes as far as Forgejo itself delivers it
Contributor
Copy link

I recommend checking out the Forgejo repo itself and potentially report your issues there, in case they aren't documented

I recommend checking out the [Forgejo repo itself](https://codeberg.org/forgejo/forgejo) and potentially report your issues there, in case they aren't documented

I'm still curious exactly what the problem is, though. I'm aware of a problem where the crate doesn't deserialize missing fields properly, so any added fields break when interfacing with an older forgejo instance.

I'm still curious exactly what the problem is, though. I'm aware of a problem where the crate doesn't deserialize missing fields properly, so any added fields break when interfacing with an older forgejo instance.

Is there a chance of being able to use the /api/v1/nodeinfo to do a version check against the library? Even an optional one that could be there which would give a useful message?

Is there a chance of being able to use the `/api/v1/nodeinfo` to do a version check against the library? Even an optional one that could be there which would give a useful message?
Sign in to join this conversation.
No Branch/Tag specified
main
docs-ci
pages
v0.11.0
v0.10.0
v0.9.2
v0.9.1
v0.9.0
v0.8.1
v0.8.0
v0.7.0
v0.6.0
v0.5.0
v0.4.1
v0.4.0
v0.3.2
v0.3.1
v0.3.0
v0.2.0
v0.1.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Cyborus/forgejo-api#163
Reference in a new issue
Cyborus/forgejo-api
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?