Skip to content

No longer works with supported go versions (imports unsupported go4.org/unsafe/assume-no-moving-gc) #266

@Mic92

Description

@Mic92

cortextool is the only frontend for now that also support uploading loki rules (not supported by mimirtool yet).
However it is not longer compatible with any go version that is not end-of-life: https://endoflife.date/go

$ cortextool
panic: Something in this program imports go4.org/unsafe/assume-no-moving-gc to declare that it assumes a non-moving garbage collector, but your version of go4.org/unsafe/assume-no-moving-gc hasn't been updated to assert that 
it's safe against the go1.19 runtime. If you want to risk it, run with environment variable ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.19 set. Notably, if go1.19 adds a moving garbage collector, this program is unsafe to use
.

goroutine 1 [running]:
go4.org/unsafe/assume-no-moving-gc.init.0()
        go4.org/unsafe/assume-no-moving-gc@v0.0.0-20201222180813-1025295fd063/untested.go:24 +0x1f4

Hence there is no safe way to upload loki rules to grafana cloud because there is no go version that still receives security updates.

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