WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Version type not supported! improper constraint - Boss doesn't seem to support a SemVer range #209

@sLesage

Description

@sLesage

I have a package which has a dependency on another package. I want it to use everything 1.0.0, including test / alpha / beta / ... up to and including 1.0.0. So normally this should do the trick : >1.0.0-a <=1.0.0

I've checked it using https://semver.npmjs.com/#syntax-examples and >1.0.0-a <=1.0.0 does exactly what it needs to do there. Sadly BOSS is crashing on this reporting Version type not supported! improper constraint: >1.0.0-a <=1.0.0

[ERROR]   Version type not supported! improper constraint: >1.0.0-a <=1.0.0
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x8baca7]

goroutine 1 [running]:
github.com/hashload/boss/core/installer.getVersion({{0x1349e780, 0x4e}, {0x1349a2e0, 0x20}, {0x2ab55b74, 0xee08d13ae, 0xdf5120}, 0x1348a2c0}, {{0x1348c200, 0x3b}, ...}, ...)
        /home/runner/work/boss/boss/core/installer/core.go:166 +0x377
github.com/hashload/boss/core/installer.ensureModules({{0x1349e780, 0x4e}, {0x1349a2e0, 0x20}, {0x2ab55b74, 0xee08d13ae, 0xdf5120}, 0x1348a2c0}, 0x13506780, {0x134941b0, ...}, ...)
        /home/runner/work/boss/boss/core/installer/core.go:110 +0x1eb
github.com/hashload/boss/core/installer.EnsureDependencies({{0x1349e780, 0x4e}, {0x1349a2e0, 0x20}, {0x2ab55b74, 0xee08d13ae, 0xdf5120}, 0x1348a2c0}, 0x13506780, 0x0)
        /home/runner/work/boss/boss/core/installer/core.go:48 +0xc8
github.com/hashload/boss/core/installer.DoInstall(0x13506780, 0x0)
        /home/runner/work/boss/boss/core/installer/core.go:27 +0xce
github.com/hashload/boss/core/installer.LocalInstall({0xe1bb88, 0x0, 0x0}, 0x13506780, 0x0, 0x0)
        /home/runner/work/boss/boss/core/installer/local.go:11 +0x4e
github.com/hashload/boss/core.InstallModules({0xe1bb88, 0x0, 0x0}, 0x0, 0x0)
        /home/runner/work/boss/boss/core/installer.go:26 +0x1bb
github.com/hashload/boss/cmd.glob..func8(0xdda4c0, {0xe1bb88, 0x0, 0x0})
        /home/runner/work/boss/boss/cmd/update.go:14 +0x38
github.com/spf13/cobra.(*Command).execute(0xdda4c0, {0xe1bb88, 0x0, 0x0})
        /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:860 +0x61c
github.com/spf13/cobra.(*Command).ExecuteC(0xddad00)
        /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x403
github.com/spf13/cobra.(*Command).Execute(...)
        /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
github.com/hashload/boss/cmd.Execute()
        /home/runner/work/boss/boss/cmd/root.go:45 +0x1c3
main.main()
        /home/runner/work/boss/boss/app.go:8 +0x17

Similar situation with the range : 1.0.0-a - 1.0.0

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions