Skip to content

Commit

Permalink
feat: use the pubgrub algorithm for solving versions (#40)
Browse files Browse the repository at this point in the history
* refactor: separate resolving tests

* feat: use pubgrub to resolve dependencies

* feat: show friendly mod name in error message

* feat: show single version in error message when only one matches

* ci: update go version to match go.mod

* feat: format FactoryGame incompatibility and term

* chore: fetch all necessary data of the version at once

* chore: upgrade pubgrub

* chore: upgrade pubgrub

* ci: update golangci-lint version for go 1.21

* chore: lint

* chore: update go version in readme
  • Loading branch information
mircearoata authored Dec 6, 2023
1 parent 72a6094 commit 024b11b
Show file tree
Hide file tree
Showing 16 changed files with 730 additions and 403 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
go-version: 1.21

- name: Check out code into the Go module directory
uses: actions/checkout@v2
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
go-version: 1.21

- name: Check out code into the Go module directory
uses: actions/checkout@v2
Expand All @@ -47,7 +47,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.51
version: v1.54
skip-pkg-cache: true
skip-build-cache: true

Expand All @@ -62,7 +62,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
go-version: 1.21

- name: Check out code into the Go module directory
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
go-version: 1.21

- name: Check out code into the Go module directory
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Run `ficsit help` to see a list of available commands.

### Dependencies

* [Go 1.18](https://go.dev/doc/install)
* [Go 1.21](https://go.dev/doc/install)
* IDE of Choice. Goland or VSCode suggested.

## Building
Expand Down
4 changes: 2 additions & 2 deletions cli/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ func InitCLI(apiOnly bool) (*GlobalContext, error) {

func (g *GlobalContext) Save() error {
if err := g.Installations.Save(); err != nil {
return err
return errors.Wrap(err, "failed to save installations")
}

if err := g.Profiles.Save(); err != nil {
return err
return errors.Wrap(err, "failed to save profiles")
}

return nil
Expand Down
Loading

0 comments on commit 024b11b

Please sign in to comment.