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

Add automation checks for tags and improve version output #108

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MetalBlueberry
Copy link
Contributor

@MetalBlueberry MetalBlueberry commented Jan 17, 2025

I noticed I made the mistake to forget to set the version variable correctly.

This changes aim to fail a the tag pipeline when it happens, so developers can realize that something is wrong.

It also adds build info to the binary, which will help to find the actual build environment even if the version string was not updated by mistake.

It looks like this

╰─>$ timescaledb-parallel-copy --version  
        -buildmode: exe
        -compiler: gc
        DefaultGODEBUG: asynctimerchan=1,gotypesalias=0,httplaxcontentlength=1,httpmuxgo121=1,httpservecontentkeepheaders=1,tls10server=1,tls3des=1,tlskyber=0,tlsrsakex=1,tlsunsafeekm=1,winreadlinkvolume=0,winsymlink=0,x509keypairleaf=0,x509negativeserial=1
        CGO_ENABLED: 1
        CGO_CFLAGS: 
        CGO_CPPFLAGS: 
        CGO_CXXFLAGS: 
        CGO_LDFLAGS: 
        GOARCH: amd64
        GOOS: linux
        GOAMD64: v1
        vcs: git
        vcs.revision: 27507a2684eb15633b903b0ee1ebb7684bc7e29e
        vcs.time: 2025-01-13T09:02:21Z
        vcs.modified: true
timescaledb-parallel-copy 0.8.0 [go1.23.4] (linux amd64)

@MetalBlueberry MetalBlueberry changed the title Add automation checks for tags Add automation checks for tags and improve version output Jan 17, 2025
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

Successfully merging this pull request may close these issues.

1 participant