Skip to content

Commit 065cb07

Browse files
authored
chore: Update scripts and fix style (#203)
* chore: Remove GOPROXY overwrite * chore: Output test summary after tests execution * style: Fix formatting
1 parent 75c98ba commit 065cb07

File tree

4 files changed

+16
-17
lines changed

4 files changed

+16
-17
lines changed

internal/puzzles/solutions/2016/day02/solution.go

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ type keypad struct {
106106
loadKeypadPart2
107107
keyboard
108108
109-
1
110-
2 3 4
111-
5 6 7 8 9
112-
A B C
113-
D
109+
1
110+
2 3 4
111+
5 6 7 8 9
112+
A B C
113+
D
114114
115115
start at `5`
116116
@@ -139,9 +139,10 @@ func loadKeypadPart2() keypad {
139139
/*
140140
loadKeypadPart1
141141
keyboard
142-
1 2 3
143-
4 5 6
144-
7 8 9
142+
143+
1 2 3
144+
4 5 6
145+
7 8 9
145146
146147
let's predict that this is a 2 dimension matrix and 5 is a 1,1
147148
*/

internal/puzzles/solutions/doc.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@
55
//
66
// Example:
77
//
8-
// type solver struct {
8+
// type solver struct {
99
// name string
1010
// }
1111
//
1212
// func init() {
13-
// puzzleName, err := solutions.MakeName("2019", "day01")
13+
// puzzleName, err := solutions.MakeName("2019", "day01")
1414
// if err != nil {
1515
// panic(err)
1616
// }
17-
// puzzles.Register(puzzleName, solver{
17+
// puzzles.Register(puzzleName, solver{
1818
// name: puzzleName,
1919
// })
20-
// }
20+
// }
2121
//
2222
// Then to register solution in the list of all solutions: make a blank import of package with puzzle solution
2323
// at register_<year>.go
2424
//
25-
// import _ "github.com/obalunenko/advent-of-code/puzzles/solutions/day01"
25+
// import _ "github.com/obalunenko/advent-of-code/puzzles/solutions/day01"
2626
//
2727
// And then blank import solutions package at main.go to register all solutions
2828
//
29-
// import _ "github.com/obalunenko/advent-of-code/puzzles/solutions
29+
// import _ "github.com/obalunenko/advent-of-code/puzzles/solutions
3030
package solutions

scripts/sync-vendor.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ TOOLS_DIR=${REPO_ROOT}/tools
99

1010
echo "${SCRIPT_NAME} is running... "
1111

12-
go env -w GOPROXY=https://proxy.golang.org,direct
13-
1412
sync_vendor() {
1513
go mod tidy -v
1614
go mod vendor

scripts/tests/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ echo "${SCRIPT_NAME} is running... "
88

99
GOTEST="go test -v "
1010
if command -v "gotestsum" &>/dev/null; then
11-
GOTEST="gotestsum --format pkgname --"
11+
GOTEST="gotestsum --format pkgname-and-test-fails --"
1212
fi
1313

1414
${GOTEST} -race ./...

0 commit comments

Comments
 (0)