-
Notifications
You must be signed in to change notification settings - Fork 31
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
Patch fixes qol #272
Merged
Merged
Patch fixes qol #272
Changes from 14 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
6745721
chore: added .devcontainer
ADRFranklin d3a03db
chore: tests need CGO enabled before running
ADRFranklin 8dcdb6b
chore: syntax cleanup
ADRFranklin d7fa053
tests: use env for mongo connection with fallbacks
ADRFranklin a15a10b
chore: updated dependencies and updated code to reflect updates
ADRFranklin 961dd2d
chore: update go mod file to 1.21
ADRFranklin f329de1
fix: service from makefile incorrectly names file, so hardcoded to cj
ADRFranklin b88dc1f
chore: manually fix what go mod tidy and go mod download failed to do
ADRFranklin 1f8447e
chore: downgrade stretchr/testify to satisfy zap
ADRFranklin c96cd5f
chore: downgrade multierror to satisfy zap
ADRFranklin 0fe2dd3
ci: upgrade go version to build with
ADRFranklin 100f463
chore: updated rand.Seed as it is now deprecated
ADRFranklin 8752d82
fix(storage): errors were not being handled and some slight syntax cl…
ADRFranklin 56e8926
chore: strings.Title was deprecated so replaced with code cleanup
ADRFranklin 46d1a3a
fix: whoops, totally forgot to modify the interfaces
ADRFranklin 36e0f69
fix: rng seed not being used
ADRFranklin 4417274
chore: more code cleanup
ADRFranklin File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.dockerignore | ||
devcontainer.json | ||
docker-compose.yml | ||
Dockerfile | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM qmcgaw/godevcontainer | ||
# | ||
RUN apk add make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"name": "southclaws-cj", | ||
"dockerComposeFile": [ | ||
"docker-compose.yml" | ||
], | ||
"service": "vscode", | ||
"runServices": [ | ||
"vscode" | ||
], | ||
"shutdownAction": "stopCompose", | ||
"postCreateCommand": "~/.windows.sh && go mod download && go mod tidy", | ||
"workspaceFolder": "/workspace", | ||
// "overrideCommand": "", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"golang.go", | ||
"eamodio.gitlens", // IDE Git information | ||
"davidanson.vscode-markdownlint", | ||
"ms-azuretools.vscode-docker", // Docker integration and linting | ||
"shardulm94.trailing-spaces", // Show trailing spaces | ||
"Gruntfuggly.todo-tree", // Highlights TODO comments | ||
"bierner.emojisense", // Emoji sense for markdown | ||
"stkb.rewrap", // rewrap comments after n characters on one line | ||
"vscode-icons-team.vscode-icons", // Better file extension icons | ||
"github.vscode-pull-request-github", // Github interaction | ||
"redhat.vscode-yaml", // Kubernetes, Drone syntax highlighting | ||
"bajdzis.vscode-database", // Supports connections to mysql or postgres, over SSL, socked | ||
"IBM.output-colorizer", // Colorize your output/test logs | ||
"github.copilot" // AI code completion | ||
], | ||
"settings": { | ||
"files.eol": "\n", | ||
"editor.formatOnSave": true, | ||
"go.buildTags": "", | ||
"go.toolsEnvVars": { | ||
"CGO_ENABLED": "0" | ||
}, | ||
"go.useLanguageServer": true, | ||
"go.testEnvVars": { | ||
"CGO_ENABLED": "1" | ||
}, | ||
"go.testFlags": [ | ||
"-v", | ||
"-race" | ||
], | ||
"go.testTimeout": "10s", | ||
"go.coverOnSingleTest": true, | ||
"go.coverOnSingleTestFile": true, | ||
"go.coverOnTestPackage": true, | ||
"go.lintTool": "golangci-lint", | ||
"go.lintOnSave": "package", | ||
"[go]": { | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "always" | ||
} | ||
}, | ||
"gopls": { | ||
"usePlaceholders": false, | ||
"staticcheck": true | ||
}, | ||
"remote.extensionKind": { | ||
"ms-azuretools.vscode-docker": "workspace" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
version: "3.7" | ||
|
||
services: | ||
vscode: | ||
build: . | ||
volumes: | ||
- ../:/workspace | ||
# Docker socket to access Docker server | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
# SSH directory for Linux, OSX and WSL | ||
# On Linux and OSX, a symlink /mnt/ssh <-> ~/.ssh is | ||
# created in the container. On Windows, files are copied | ||
# from /mnt/ssh to ~/.ssh to fix permissions. | ||
- ~/.ssh:/mnt/ssh | ||
# Shell history persistence | ||
- ~/.zsh_history:/root/.zsh_history | ||
# Git config | ||
- ~/.gitconfig:/root/.gitconfig | ||
environment: | ||
- TZ=Europe/London | ||
depends_on: | ||
- mongo | ||
cap_add: | ||
# For debugging with dlv | ||
- SYS_PTRACE | ||
security_opt: | ||
# For debugging with dlv | ||
- seccomp:unconfined | ||
entrypoint: [ "zsh", "-c", "while sleep 1000; do :; done" ] | ||
|
||
mongo: | ||
image: mongo:4.4.0 | ||
container_name: 'southclaws-cj-mongo-${MONGO_CONTAINER_ID:-local}' | ||
hostname: mongo | ||
ports: | ||
- "${MONGO_EXPOSED_PORT:-27017}:27017" | ||
volumes: | ||
- ./data/db:/data/db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,6 @@ log.txt | |
|
||
# binary | ||
cj | ||
|
||
# devcontainer | ||
.devcontainer/data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we even need this now?