DeedleFake
5d5d04fbb7
feat(golang-rewrite): rename module and move main
pacakge to cmd/asdf
...
* Replace direct `fmt.Println()` usage in a test with `t.Log()`
* Rename `cmd` to `cli`
* Move asdf command from module root
* Fix some linter warnings, thus enabling some tests that were being skipped
* Fix `Makefile`
* Rename module to `github.com/asdf-vm/asdf`
* Fix `TestGetAllToolsAndVersionsInContent/returns_empty_list_with_found_true_and_no_error_when_empty_content`
* Rewrite `Unique()` to be a bit more straightforwards
* Get workflow checks passing again
toolversions.Unique is ever so slightly faster, technically.
```
goos: linux
goarch: amd64
pkg: github.com/asdf-vm/asdf/internal/toolversions
cpu: AMD Ryzen 9 3900X 12-Core Processor
│ /tmp/old.txt │ /tmp/new.txt │
│ sec/op │ sec/op vs base │
Unique-24 346.5n ± 1% 342.4n ± 1% -1.17% (p=0.027 n=10)
│ /tmp/old.txt │ /tmp/new.txt │
│ B/op │ B/op vs base │
Unique-24 160.0 ± 0% 160.0 ± 0% ~ (p=1.000 n=10) ¹
¹ all samples are equal
│ /tmp/old.txt │ /tmp/new.txt │
│ allocs/op │ allocs/op vs base │
Unique-24 3.000 ± 0% 3.000 ± 0% ~ (p=1.000 n=10) ¹
¹ all samples are equal
```
2024-12-18 11:32:04 -05:00
Trevor Brown
572ed07f2b
feat(golang-rewrite): correct asdf-version workflow step to produce version as output
2024-12-18 11:32:03 -05:00
Trevor Brown
19a0597502
feat(golang-rewrite): correct asdf-version workflow step to produce version as output
2024-12-18 11:32:03 -05:00
Trevor Brown
6d708b2807
feat(golang-rewrite): compile asdf version into Go binaries
...
* Create asdf-version script to print formatted version
* Update Makefile to set main.version variable during build
* Improve help output formatting
* Update release-build workflow to set asdf version in binaries
2024-12-18 11:32:03 -05:00
Trevor Brown
bc05110159
feat(golang-rewrite): build dev release binaries
...
* Use `wangyoucao577/go-release-action@v1` to build Go binaries for releases
* set release tag for `go-release-action`
2024-12-18 11:32:02 -05:00
Trevor Brown
be52d8f39c
feat(golang-rewrite): create installs and installtest packages to avoid circular dependency
...
* Correct `go test` command in GitHub test workflow
* Update execute tests to work on Github Actions
* Check in `shims/testdata` directory
* Create `installtest` helper package
* Create `installs` package
2024-12-18 11:32:02 -05:00
Trevor Brown
c85155f69d
chore(golang-rewrite): setup gofumpt
...
* Install and run gofumpt in Golang lint workflow
* Remove golangci-lint
* Run gofumpt and fix revive linter errors
2024-12-18 11:32:00 -05:00
Trevor Brown
5406f3eca1
chore(golang-rewrite): Github workflow improvements
...
* Add golangci-lint to lint workflow
* Remove failing Bash test jobs
* Add golangci lint config
* Fix revive command in Makefile
* Fix revive warnings
2024-12-18 11:32:00 -05:00
dependabot[bot]
57f2c97f86
chore(deps): bump actions/checkout from 3 to 4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-12-18 11:32:00 -05:00
Trevor Brown
07b5813566
feat(golang-rewrite): create settings and config structs for loading config
...
* rename commands package to cmd
* add go-ini as a dependency
* write code to parse asdfrc file into Settings struct
* add go-envconfig as a dependency
* add go-homedir as a dependency
* implement first version of LoadConfig function to load environment variables into Config struct
2024-12-18 11:32:00 -05:00
Trevor Brown
88af4eea00
fix(golang-rewrite): update detect-changes logic for Golang tests
2024-12-18 11:32:00 -05:00
Trevor Brown
f5a59677df
feat(golang-rewrite): make bats available for golang tests
2024-12-18 11:32:00 -05:00
Trevor Brown
1b3c42699a
fix(golang-rewrite): attempt to fix goreleaser GitHub workflow
2024-12-18 11:32:00 -05:00
Trevor Brown
7439ea9168
fix(golang-rewrite): try to get goreleaser action to generate snapshot builds
2024-12-18 11:32:00 -05:00
Trevor Brown
2a31cafd38
fix(golang-rewrite): try to fix goreleaser
2024-12-18 11:32:00 -05:00
Trevor Brown
6b45a5e5f7
fix(golang-rewrite): set dependencies between release-build jobs
2024-12-18 11:31:59 -05:00
Trevor Brown
5a24864632
fix(golang-rewrite): add missing goreleaser argument
2024-12-18 11:31:59 -05:00
Trevor Brown
87d3c06cf5
fix(golang-rewrite): correct go build command in lint workflow
2024-12-18 11:31:59 -05:00
Trevor Brown
c5092c6dbf
feat(golang-rewrite): setup Golang release GitHub workflow
2024-12-18 11:31:59 -05:00
Trevor Brown
3a9f539aa0
feat: add Golang tests to GitHub test workflow
2024-12-18 11:31:59 -05:00
Trevor Brown
f41ce90dc4
feat: add linting for Golang to GitHub lint workflow
2024-12-18 11:31:59 -05:00
Trevor Brown
3e11bd4b33
fix: update GitHub workflows to work private asdf Go fork
2024-12-18 11:31:59 -05:00
dependabot[bot]
140ad3a48c
chore(deps): bump GoogleCloudPlatform/release-please-action from 3 to 4
...
Bumps [GoogleCloudPlatform/release-please-action](https://github.com/googlecloudplatform/release-please-action ) from 3 to 4.
- [Release notes](https://github.com/googlecloudplatform/release-please-action/releases )
- [Changelog](https://github.com/google-github-actions/release-please-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/googlecloudplatform/release-please-action/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: GoogleCloudPlatform/release-please-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-12-18 11:31:59 -05:00
dependabot[bot]
c5116dca60
chore(deps): bump dorny/paths-filter from 2 to 3 ( #1718 )
2024-10-07 13:57:17 +00:00
dependabot[bot]
5de3a8d17c
chore(deps): bump actions/cache from 3 to 4 ( #1712 )
2024-10-07 13:53:34 +00:00
dependabot[bot]
3951f31cd5
chore(deps): bump amannn/action-semantic-pull-request from 5.4.0 to 5.5.3 ( #1788 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-08 00:49:53 +11:00
dependabot[bot]
9265b87e0a
chore(deps): bump actions/setup-python from 4 to 5 ( #1695 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-09 23:51:13 +11:00
dependabot[bot]
75626293d3
chore(deps): bump amannn/action-semantic-pull-request from 5.2.0 to 5.4.0 ( #1676 )
2023-11-08 14:45:01 +00:00
dependabot[bot]
37e0ddaf78
chore(deps): bump actions/setup-node from 3 to 4 ( #1669 )
2023-11-08 14:44:33 +00:00
dependabot[bot]
66ebc56ec3
chore(deps): bump asdf-vm/actions from 2 to 3 ( #1664 )
2023-11-08 14:44:11 +00:00
James Hegedus
b45f1dc9d7
ci: remove semantic release single-commit rule ( #1642 )
2023-09-15 01:04:34 +10:00
dependabot[bot]
ef2bb7dd8e
chore(deps): bump crazy-max/ghaction-github-pages from 3 to 4 ( #1635 )
2023-09-11 14:08:07 +00:00
James Hegedus
c18b60fcd9
ci: use dependabot groups for docs/
dependency PRs ( #1634 )
2023-09-11 01:30:08 +10:00
dependabot[bot]
0e1c90e177
chore(deps): bump actions/checkout from 3 to 4 ( #1628 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 00:26:05 +10:00
James Hegedus
5133819a77
docs: migrate to VitePress from VuePress ( #1578 )
2023-06-18 16:24:47 +10:00
James Hegedus
d8ce35357f
chore: unify lint/fix scripts ( #1549 )
2023-05-31 18:19:34 +10:00
James Hegedus
8e2aa5d726
ci: custom release PR sections & titles ( #1548 )
2023-05-28 23:10:57 +10:00
James Hegedus
a1bc0e97cd
ci: pin all shell versions for Ubuntu test environment ( #1531 )
2023-04-06 05:57:51 +00:00
James Hegedus
cbe57c444e
chore: bump nushell version in CI ( #1530 )
2023-04-06 04:05:48 +00:00
Edwin Kofler
213aa22378
feat: Support PowerShell Core ( #1522 )
2023-04-01 04:12:20 +00:00
Edwin Kofler
8919f4009e
fix!: align Fish entrypoint behaviour with other shells ( #1524 )
2023-03-30 07:27:23 +00:00
James Hegedus
05a8bb940a
ci: fix typo in workflow step name ( #1511 )
2023-03-24 01:30:29 +00:00
dependabot[bot]
58611c7ba4
chore(deps): bump asdf-vm/actions from 1 to 2 ( #1504 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-21 00:49:10 +00:00
dependabot[bot]
f24a1f33b0
chore(deps): bump amannn/action-semantic-pull-request from 5.1.0 to 5.2.0 ( #1505 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-20 11:51:03 -04:00
James Hegedus
9d336e06f1
ci: bump nushell & elvish versions ( #1500 )
2023-03-16 02:16:37 +00:00
James Hegedus
03b9479558
ci: enable Bats test file-level parallel execution ( #1461 )
2023-02-19 22:36:31 +11:00
dependabot[bot]
fde0ce6c8e
chore(deps): bump amannn/action-semantic-pull-request from 5.0.2 to 5.1.0 ( #1474 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-14 01:39:01 +11:00
James Hegedus
b45f12c617
ci: conditional execution of tests on file changes ( #1448 )
2023-01-26 00:20:49 +11:00
James Hegedus
1ae7b683e1
ci: pin python version for checkstyle script ( #1447 )
2023-01-23 03:01:42 +11:00
James Hegedus
2bf9308d96
ci: lint github actions with actionlint ( #1446 )
2023-01-23 02:36:43 +11:00