Commit Graph

1860 Commits

Author SHA1 Message Date
Trevor Brown
9097696a4f feat(golang-rewrite): create Makefile
* Address Go linter warnings
* Fix Github workflow
2024-12-18 11:32:00 -05:00
Trevor Brown
4741147821 Merge pull request #29 from asdf-vm/tb/plugin-list-command
feat(golang-rewrite): create plugin list command
2024-12-18 11:32:00 -05:00
Trevor Brown
2b02f51fa1 feat(golang-rewrite): create plugin remove command
* Simplify BATS test Golang code
* Update plugin add test to new command format
* Correctly set `ASDF_DATA_DIR` for BATS tests
* Rename `PluginAdd` function to `Add`
* Create `plugin.Remove` function
* Make plugin remove command invoke `plugin.Remove` function
2024-12-18 11:32:00 -05:00
Trevor Brown
b49e01beee Merge pull request #28 from asdf-vm/tb/plugin-add-command-2
feat(golang-rewrite): create pluginAddCommand function for plugin add command action
2024-12-18 11:32:00 -05:00
Trevor Brown
ad0907a74d feat(golang-rewrite): create plugin list command
* remove underscores from function names (addresses warnings from revive linter)
* create installMockPluginRepo function
* implement plugin list command
2024-12-18 11:32:00 -05:00
Trevor Brown
43f20587b5 Merge pull request #26 from asdf-vm/tb/plugin-add-command
feat(golang-rewrite): PluginAdd function
2024-12-18 11:32:00 -05:00
Trevor Brown
26b91aa828 feat(golang-rewrite): create pluginAddCommand function for plugin add command action 2024-12-18 11:32:00 -05:00
Trevor Brown
f9e25b06fb Merge pull request #25 from asdf-vm/tb/plugin-command-placeholders
feat(golang-rewrite): add placeholders for plugin subcommands
2024-12-18 11:32:00 -05:00
Trevor Brown
15e1f06f37 feat(golang-rewrite): PluginAdd function
* Add go-git as a dependency
* Remove plugins dir from gitignore
* Move config code to config package
* Create validatePluginName function
* Create PluginDirectory function
* Create PluginExists function
* Implement PluginAdd function
* Add testify as a dependency
* Write test for PluginAdd happy path
2024-12-18 11:32:00 -05:00
Trevor Brown
faa56e4eb2 Merge pull request #24 from asdf-vm/tb/config-api
feat(golang-rewrite): add config methods
2024-12-18 11:32:00 -05:00
Trevor Brown
b40beb6039 feat(golang-rewrite): add placeholders for plugin subcommands
* Switch from cobra to urfave/cli
* Create placeholder plugin command structs
2024-12-18 11:32:00 -05:00
Trevor Brown
60207d8a6e Merge pull request #16 from asdf-vm/dependabot/github_actions/actions/checkout-4
chore(deps): bump actions/checkout from 3 to 4
2024-12-18 11:32:00 -05:00
Trevor Brown
8ad3472abc feat(golang-rewrite): add config methods
* Create PluginRepoCheckDuration struct to represent config value
* Make some functions private
* write basic tests for Config methods
* Add Loaded field to Settings struct
* Define constants for config default values
2024-12-18 11:32:00 -05:00
Trevor Brown
6b5f3624c0 Merge pull request #23 from asdf-vm/tb/setup-config
feat(golang-rewrite): create settings and config structs for loading config
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
f0cb04c91a Merge pull request #22 from asdf-vm/tb/workflow-fix
fix(golang-rewrite): update detect-changes logic for Golang tests
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
e19fb9e276 Merge pull request #21 from asdf-vm/tb/cli-arg-parsing
feat(golang-rewrite): setup Cobra for command line interface
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
5105fbf824 Merge pull request #20 from asdf-vm/tb/bats-tests-golang
feat(golang-rewrite): run BATS integration tests for Golang implementation
2024-12-18 11:32:00 -05:00
Trevor Brown
d06d71f9f6 feat(golang-rewrite): add boilerplate for cobra CLI commands 2024-12-18 11:32:00 -05:00
Trevor Brown
5db7d3181c Merge pull request #19 from asdf-vm/tb/attempt-to-fix-goreleaser-3
fix(golang-rewrite): attempt to fix goreleaser GitHub workflow
2024-12-18 11:32:00 -05:00
Trevor Brown
163d6b4b46 fix(golang-rewrite): comment out all BATS tests 2024-12-18 11:32:00 -05:00
Trevor Brown
7d5281a8a9 feat(golang-rewrite): add cobra library as dependency 2024-12-18 11:32:00 -05:00
Trevor Brown
04f9c5fe7d Merge pull request #15 from asdf-vm/tb/attempt-to-fix-goreleaser-2
fix(golang-rewrite): try to get goreleaser action to generate snapsho…
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
3f17a80fbe fix(golang-rewrite): fix dependencies script on linux 2024-12-18 11:32:00 -05:00
Trevor Brown
cfc473fb5c Merge pull request #14 from asdf-vm/tb/attempt-to-fix-goreleaser
fix(golang-rewrite): try to fix goreleaser
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
f5a59677df feat(golang-rewrite): make bats available for golang tests 2024-12-18 11:32:00 -05:00
Trevor Brown
ae0d271861 Merge pull request #13 from asdf-vm/tb/workflow-jobs-fix
fix(golang-rewrite): set dependencies between release-build jobs
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
2951011090 feat(golang-rewrite): set variables for bats integration tests 2024-12-18 11:32:00 -05:00
Trevor Brown
477e9d5729 feat(golang-rewrite): build golang asdf for BATS integration tests 2024-12-18 11:32:00 -05:00
Trevor Brown
2fc8006490 feat(golang-rewrite): run bats integration tests in golang 2024-12-18 11:32:00 -05:00
Trevor Brown
f18873bf86 Merge pull request #12 from asdf-vm/tb/golang-build-fix
fix(golang-rewrite): add missing goreleaser argument
2024-12-18 11:31:59 -05:00
Trevor Brown
6b45a5e5f7 fix(golang-rewrite): set dependencies between release-build jobs 2024-12-18 11:31:59 -05:00
Trevor Brown
99dc28cbf7 Merge pull request #11 from asdf-vm/tb/golang-builds
feat(golang-rewrite): setup Golang CI builds
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
814c1fa3e7 Merge pull request #8 from asdf-vm/tb/github-workflow-setup
feat: Add Golang checks to GitHub workflows
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
5c85efbc37 Merge pull request #5 from asdf-vm/tb/initialize-go-project
feat(golang-rewrite): initialize golang module
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
c5092c6dbf feat(golang-rewrite): setup Golang release GitHub workflow 2024-12-18 11:31:59 -05:00
Trevor Brown
7bee8de060 Merge pull request #1 from asdf-vm/dependabot/github_actions/GoogleCloudPlatform/release-please-action-4
chore(deps): bump GoogleCloudPlatform/release-please-action from 3 to 4
2024-12-18 11:31:59 -05:00
Trevor Brown
72c20b1b51 feat(golang-rewrite): initialize golang module 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
3f9744df0f feat(golang-rewrite): setup goreleaser 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
Trevor Brown
3e11bd4b33 fix: update GitHub workflows to work private asdf Go fork 2024-12-18 11:31:59 -05:00