Skip to content

Commit

Permalink
chore(deps): add dev-deps to go.mod 🥃
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Jul 3, 2024
1 parent e6d67d9 commit aae88ad
Show file tree
Hide file tree
Showing 11 changed files with 1,469 additions and 23 deletions.
17 changes: 9 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ NEXT_VERSION=$(shell svu patch)
.PHONY: build-deps
build-deps: ## Install the build dependencies
@echo " > Installing build deps"
brew install go goreleaser zig unicorn libusb go-swagger/go-swagger/go-swagger
brew install gh go git goreleaser zig unicorn libusb

.PHONY: build-deps
download:
@echo " > Download go.mod dependencies"
@go mod download

.PHONY: dev-deps
dev-deps: ## Install the dev dependencies
@echo " > Installing dev deps"
@go install golang.org/x/tools/...@latest
@go install github.com/spf13/cobra-cli@latest
@go install golang.org/x/tools/cmd/cover@latest
@go ginstall golang.org/x/tools/cmd/stringer@latest
@go install github.com/caarlos0/[email protected]
dev-deps: download
@echo " > Installing tools from tools.go"
@cat tools.go | grep _ | awk -F'"' '{print $$2}' | xargs -tI % go install %

.PHONY: x86-brew
x86-brew: ## Install the x86_64 homebrew on Apple Silicon
Expand Down
2 changes: 1 addition & 1 deletion api/api.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Package api contains common constants for daemon and client.
package api

//go:generate swagger generate spec -o swagger.json --scan-models
//go:generate go run github.com/go-swagger/go-swagger/cmd/swagger generate spec -o swagger.json --scan-models

// Common constants for daemon and client.
const (
Expand Down
228 changes: 223 additions & 5 deletions go.mod

Large diffs are not rendered by default.

1,221 changes: 1,218 additions & 3 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/car/format.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package car

//go:generate stringer -type=renditionAttributeType,renditionLayoutType,resourceID,csiBitmapEncoding -output car_string.go
//go:generate go run golang.org/x/tools/cmd/stringer -type=renditionAttributeType,renditionLayoutType,resourceID,csiBitmapEncoding -output car_string.go

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion pkg/ctf/types.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package ctf

//go:generate stringer -type=kind,floatEncoding -output types_string.go
//go:generate go run golang.org/x/tools/cmd/stringer -type=kind,floatEncoding -output types_string.go

import (
"encoding/json"
Expand Down
2 changes: 1 addition & 1 deletion pkg/dyld/closure.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/olekukonko/tablewriter"
)

//go:generate stringer -type=closureType,linkKind -output closure_string.go
//go:generate go run golang.org/x/tools/cmd/stringer -type=closureType,linkKind -output closure_string.go

type closureType uint32

Expand Down
2 changes: 1 addition & 1 deletion pkg/emu/emu.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package emu

//go:generate stringer -type=interrupt,branchType,pstateMode -tags=unicorn -output emu_string.go
//go:generate go run golang.org/x/tools/cmd/stringer -type=interrupt,branchType,pstateMode -tags=unicorn -output emu_string.go

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion pkg/usb/pcap/types.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package pcap

//go:generate stringer -type=iface,protocolFamily -output types_string.go
//go:generate go run golang.org/x/tools/cmd/stringer -type=iface,protocolFamily -output types_string.go

type protocolFamily uint32 // for darwin

Expand Down
2 changes: 1 addition & 1 deletion pkg/usb/springboard/springboard.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package springboard

//go:generate stringer -type=Orientation -output springboard_string.go
//go:generate go run golang.org/x/tools/cmd/stringer -type=Orientation -output springboard_string.go

import (
"github.com/blacktop/ipsw/pkg/usb"
Expand Down
12 changes: 12 additions & 0 deletions tools.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//go:build tools

package main

import (
_ "github.com/caarlos0/svu"
_ "github.com/go-swagger/go-swagger/cmd/swagger"
_ "github.com/goreleaser/goreleaser"
_ "github.com/spf13/cobra-cli"
_ "golang.org/x/perf/cmd/benchstat"
_ "golang.org/x/tools/cmd/stringer"
)

0 comments on commit aae88ad

Please sign in to comment.