hashicorp / hashicorp/go-version

Constraint with wildcards

Open
#164 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.8k
Forks
165
Avg merge
23h 42m
Merged PRs (30d)
2

Description

Was poking at using this for python version constraints, and it seems wild cards are not supported.

```
>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*
```

It errors as follows:

```
Malformed constraint: !=3.0.*
```

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named in the issue. Start by reproducing the shown constraint parsing error, then trace the constraint parser and existing version-constraint tests; done means the wildcard exclusions in the example are accepted and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.