Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go Rewrite #10

Merged
merged 25 commits into from
Apr 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
fa70a33
feat: begin working on Go rewrite
hbjydev Apr 13, 2024
585b921
feat: config search paths
hbjydev Apr 13, 2024
d3973a5
feat: working template generation logic
hbjydev Apr 13, 2024
dee2ce3
fix: go compile error
hbjydev Apr 13, 2024
c079f57
feat: working on flake ci template
hbjydev Apr 13, 2024
a7ae85a
feat: cachix config
hbjydev Apr 13, 2024
813c71c
feat: make new config for creating directories recursively work
hbjydev Apr 13, 2024
5f7a5ee
feat: more go-cobra-cli templates
hbjydev Apr 13, 2024
e050e43
feat: working on whitespace fixes
hbjydev Apr 13, 2024
cd6dcb0
feat: fix for justfile indent
hbjydev Apr 13, 2024
6581ed8
fix: include vendorhash for app
hbjydev Apr 13, 2024
d95ed1b
fix: use altf4llc-os cachix repo
hbjydev Apr 13, 2024
8302569
feat: add docker build to go-cobra-cli flake
hbjydev Apr 13, 2024
7631c63
feat: update architecture to be more DRY
hbjydev Apr 13, 2024
43fc177
feat: update golangci-lint config template
hbjydev Apr 13, 2024
ed2f2a7
feat: update flake.yaml template
hbjydev Apr 13, 2024
cf8a3c1
chore: remove old rust code, will be replaced
hbjydev Apr 13, 2024
d9e0cb7
fix: resolve linting issue
hbjydev Apr 13, 2024
bdc2a74
feat: version command
hbjydev Apr 17, 2024
1a0629b
feat: include versioning in nix build
hbjydev Apr 17, 2024
ef55947
fix: update ldflags value to fix compile error
hbjydev Apr 17, 2024
3f51777
feat: go-lambda templates
hbjydev Apr 18, 2024
fa6bcca
docs: update readme and add example configs
hbjydev Apr 18, 2024
a8892b7
docs: add usage steps
hbjydev Apr 18, 2024
c3795d8
feat: add logic for a .bcignore file
hbjydev Apr 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.go]
indent_style = tab
indent_size = 4

[*.{md,yml,yaml}]
indent_style = space
indent_size = 2

[justfile]
indent_style = space
indent_size = 4
36 changes: 36 additions & 0 deletions .github/workflows/flake.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Flake Check & Build

on:
push:
branches: [main]
pull_request:

env:
CACHIX_BINARY_CACHE: altf4llc-os

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/cachix-action@v14
with:
authToken: ${{ secrets.ALTF4LLC_CACHIX_AUTH_TOKEN }}
name: ${{ env.CACHIX_BINARY_CACHE }}
- uses: actions/checkout@v4
- run: nix develop -c just check

build:
needs:
- check
runs-on: ubuntu-latest
steps:
- uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/cachix-action@v14
with:
authToken: ${{ secrets.ALTF4LLC_CACHIX_AUTH_TOKEN }}
name: ${{ env.CACHIX_BINARY_CACHE }}
- uses: actions/checkout@v4
- run: nix develop -c just build

17 changes: 0 additions & 17 deletions .github/workflows/flake.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: golangci-lint

on:
pull_request:

permissions:
checks: write
contents: read
pull-requests: read

jobs:
lint:
env:
CGO_ENABLED: 0
GOPRIVATE: github.com/ALT-F4-LLC/quirk-service-kit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- run: go mod download
- uses: golangci/golangci-lint-action@v4
with:
skip-pkg-cache: true
args: ./... --timeout=5m
5 changes: 5 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
issues:
exclude:
- Error return value of `\(github.com/go-kit/log.Logger\).Log` is not checked

Loading
Loading