Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semantic Version number #7

Closed
joshbode opened this issue Dec 20, 2024 · 2 comments
Closed

Semantic Version number #7

joshbode opened this issue Dec 20, 2024 · 2 comments

Comments

@joshbode
Copy link

I use a tool called Mise to manage the installation of tools into my development environment and one of the tools I install is sshsrv.

To identify the available versions of go-based tools, Mise executes the following command internally:

$ go list -m -versions -json github.com/Crosse/sshsrv
{
        "Path": "github.com/Crosse/sshsrv"
}

Usually there would be a Versions key in the response, however for sshsrv there isn't any (see jdx/mise#3597).

I believe that go list requires full semantic versions (e.g. vX.Y.Z) to include a specific version in the go list -m -versions response, however the only version tagged in the sshsrv repo is v1.0 (rather than v1.0.0).

Would it be possible to include a tag for v1.0.0, please?

@Crosse
Copy link
Owner

Crosse commented Dec 21, 2024

I've pushed a new tag:

$ go list -m -versions -json github.com/Crosse/sshsrv
{
        "Path": "github.com/Crosse/sshsrv",
        "Versions": [
                "v1.0.1"
        ],
        "Main": true,
        "Dir": "/Users/seth/code/mine/sshsrv",
        "GoMod": "/Users/seth/code/mine/sshsrv/go.mod",
        "GoVersion": "1.23.0"
}

(No code change; I probably should have tagged it as v1.0.0, but oh well.) Hopefully this will fix your immediate issue? Let me know if it doesn't.

I honestly didn't realize people used this all that much. I've got some updates I need to make, so maybe there will be a v1.1.0 soon…

@Crosse Crosse closed this as completed Dec 21, 2024
@joshbode
Copy link
Author

Awesome! Thank you.

I've been using sshsrv in conjunction with pktriot (as an alternative to ngrok), since it provides a stable (but initially randomly allocated) port number for tunnels (unlike ngrok which is random each time unless you pay). I got sick of remembering which port was allocated where, but using the SRV record is an elegant way to expose the allocated port :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants