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

chore: remove Nix #376

Merged
merged 2 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 1 addition & 2 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,14 @@ jobs:
id: verify-changed-files-generate
with:
files: |
nix/gomod2nix.toml
docs/options.md

- name: Commit changes
if: steps.verify-changed-files-generate.outputs.files_changed == 'true'
run: |
git config --local user.email "[email protected]"
git config --local user.name "SchwarzIT Bot"
git add nix/gomod2nix.toml docs/options.md
git add toml docs/options.md
git commit -m "chore: regenerate files"

- name: Push changes
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ run: fmt ## Run a controller from your host

generate: ## Generates files
@go run cmd/options2md/main.go -o docs/options.md
@go run github.com/nix-community/gomod2nix@latest --outdir nix


lint: fmt download ## Lints all code with golangci-lint
Expand Down
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
`go/template` provides a **blueprint** for production-ready Go project layouts.

![go/template logo](docs/gotemplate.png)
> Credit to Renée French for the [Go Gopher logo](https://go.dev/blog/gopher)
> Credit to Renée French for the [Go Gopher logo](https://go.dev/blog/gopher)
> Credit to Go Authors for the [official Go logo](https://go.dev/blog/go-brand)

## Batteries included
Expand Down Expand Up @@ -44,16 +44,6 @@ go install github.com/schwarzit/go-template/cmd/gt@latest
Download the desired version for your operating system and processor architecture from the [go-template releases page](https://github.com/SchwarzIT/go-template/releases).
Make the file executable and place it in a directory available in your `$PATH`.

#### nix

`go-template` also provides a [flake.nix](flake.nix) to install it via [nix package manager](https://github.com/NixOS/nix).

You can also try out `go-template` without installing:

```shell
nix run github:schwarzit/go-template
```

### Preconditions

`go/template`'s `gt` CLI requires at least the following executables on `$PATH` to run succesfully:
Expand Down
93 changes: 0 additions & 93 deletions flake.lock

This file was deleted.

42 changes: 0 additions & 42 deletions flake.nix

This file was deleted.

Loading
Loading