Skip to content

Commit

Permalink
chore: Move main.go to subfolder under cmd (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
nieomylnieja authored Jan 12, 2024
1 parent 2e18768 commit 8949daa
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
16 changes: 9 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
builds:
- env:
- CGO_ENABLED=0
main: cmd/main.go
binary: bin/oslo
main: ./cmd/oslo
binary: ./bin/oslo
goos:
- linux
- darwin
Expand All @@ -11,11 +11,13 @@ builds:
- -X main.version={{.Version}}

archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
replacements:
darwin: Darwin
linux: Linux
amd64: x86_64
- name_template: >-
{{- .ProjectName }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
{{- if .Mips }}_{{ .Mips }}{{ end -}}
brews:
- name: oslo
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ We encourage and welcome any and all feedback from the community.
## Things to know

The goal of this project is to be compatable with the [OpenSLO Spec](https://github.com/OpenSLO/OpenSLO)
so any changes need to be compliant with that spec
so any changes need to be compliant with that spec.

## Slack

Checkout _FOLLOW US_ section at <https://openslo.com/> to join our slack channel
Checkout _FOLLOW US_ section at <https://openslo.com/> to join our slack channel.

## Making a pull request

Please make a fork of the repo, and submit a PR from there. More information can
be found [here](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request)
be found [here](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request).

## Merge Request title

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ information also check the website: [openslo.com](https://openslo.com/).

## Installation

### Go install

```sh
go install github.com/OpenSLO/oslo/cmd/oslo@latest
```

### From source

1. Checkout this repository
Expand Down
File renamed without changes.

0 comments on commit 8949daa

Please sign in to comment.