-
Notifications
You must be signed in to change notification settings - Fork 27
Outdated drivers are treated as up-to-date on SDK updates #235
Comments
We were planning to add a dependency to the SDK version using glide, but this could also be additionally done. |
Glide (why not Potentially we could read deps file and check what version is mentioned there - it will be the version of SDK drivers supports, and bblfshd can filter these values depending on SDK version it was compiled for. |
OK, I will require all drivers to add |
Outside of the convenience of using dep, I think the SDK dependency should be stated in the manifest just like we do with the required Go version because that's the purpose of the driver's manifest. |
Is it just for quick access? Driver discovery can pull dep file as it pulls |
It's because the manifest should have all the important versions needed in a single place, I think (currently it has the runtime version of the language and the Go versions). Then the bblfsh-sdk update command could update the Gopkg.toml file from the manifest as it does with other things. |
I agree that manifest should contain this information as well. I propose to parse both |
The first step is done - new drivers will include an SDK version in the |
🎉 What would be the next action items here? |
First of all, the We might be able to solve it by updating |
Is this still happening? |
Currently drivers manifests has no mentions of version of SDK they were written for. It leads to a situation when driver might become outdated and incompatible, while still being listed as
beta
or evenstable
.I propose to include new (required) field to manifest with semantic version of SDK. This field will be overwritten by
bblfsh-sdk update
and will be considered when interpreting driver status.As always, minor version difference will not affect driver status, but major difference will automatically drop the status to
inactive
.The text was updated successfully, but these errors were encountered: