Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsandeep committed May 18, 2023
2 parents 72a8d97 + 5cb413e commit 2fc6ec5
Show file tree
Hide file tree
Showing 9 changed files with 68 additions and 109 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/autorelease-tag.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🔖 Auto release tag
name: 🔖 Auto release gh action

on:
workflow_dispatch:
Expand Down Expand Up @@ -33,4 +33,4 @@ jobs:
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
release_name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
body: ${{ steps.tag_version.outputs.changelog }}
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.19

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
fetch-depth: 0

- name: "Set up Go"
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.19

Expand Down
6 changes: 0 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ builds:
goarch: arm
- goos: windows
goarch: arm64

# release options (https://goreleaser.com/customization/release/)

release:
draft: true
prerelease: auto

archives:
- format: zip
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Base
FROM golang:1.20.1-alpine AS builder
FROM golang:1.20.4-alpine AS builder
RUN apk add --no-cache build-base
WORKDIR /app
COPY . /app
RUN go mod download
RUN go build ./cmd/mapcidr

# Release
FROM alpine:3.17.2
FROM alpine:3.18.0
RUN apk -U upgrade --no-cache \
&& apk add --no-cache bind-tools ca-certificates
COPY --from=builder /app/mapcidr /usr/local/bin/
Expand Down
4 changes: 2 additions & 2 deletions cmd/mapcidr/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const banner = `
`

// Version is the current version of mapcidr
const version = `v1.1.1`
const version = `v1.1.2`

// showBanner is used to show the banner to the user
func showBanner() {
Expand Down Expand Up @@ -150,7 +150,7 @@ func ParseOptions() *Options {
}

if !options.DisableUpdateCheck {
latestVersion, err := updateutils.GetVersionCheckCallback("mapcidr")()
latestVersion, err := updateutils.GetToolVersionCallback("mapcidr", version)()
if err != nil {
if options.Verbose {
gologger.Error().Msgf("mapcidr version check failed: %v", err.Error())
Expand Down
43 changes: 20 additions & 23 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
module github.com/projectdiscovery/mapcidr

go 1.18
go 1.19

require (
github.com/logrusorgru/aurora v2.0.3+incompatible
github.com/pkg/errors v0.9.1
github.com/projectdiscovery/asnmap v1.0.2
github.com/projectdiscovery/blackrock v0.0.0-20221025011524-9e4efe804fb4
github.com/projectdiscovery/asnmap v1.0.4
github.com/projectdiscovery/blackrock v0.0.1
github.com/projectdiscovery/goflags v0.1.8
github.com/projectdiscovery/gologger v1.1.8
github.com/projectdiscovery/ipranger v0.0.5
github.com/projectdiscovery/utils v0.0.16
github.com/projectdiscovery/gologger v1.1.10
github.com/projectdiscovery/ipranger v0.0.6
github.com/projectdiscovery/utils v0.0.32
github.com/stretchr/testify v1.8.2
golang.org/x/exp v0.0.0-20230315142452-642cacee5cc0
)

require (
aead.dev/minisign v0.2.0 // indirect
github.com/Masterminds/semver/v3 v3.2.0 // indirect
github.com/Masterminds/semver/v3 v3.2.1 // indirect
github.com/Mzack9999/go-http-digest-auth-client v0.6.1-0.20220414142836-eb8883508809 // indirect
github.com/VividCortex/ewma v1.2.0 // indirect
github.com/akrylysov/pogreb v0.10.1 // indirect
Expand Down Expand Up @@ -45,7 +45,7 @@ require (
github.com/mattn/go-runewidth v0.0.14 // indirect
github.com/mholt/archiver v3.1.1+incompatible // indirect
github.com/microcosm-cc/bluemonday v1.0.23 // indirect
github.com/miekg/dns v1.1.52 // indirect
github.com/miekg/dns v1.1.54 // indirect
github.com/minio/selfupdate v0.6.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
Expand All @@ -55,21 +55,19 @@ require (
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/pierrec/lz4 v2.6.0+incompatible // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/projectdiscovery/hmap v0.0.10 // indirect
github.com/projectdiscovery/iputil v0.0.2 // indirect
github.com/projectdiscovery/networkpolicy v0.0.2-0.20221025011504-22b13ce54fff // indirect
github.com/projectdiscovery/retryabledns v1.0.21 // indirect
github.com/projectdiscovery/retryablehttp-go v1.0.10 // indirect
github.com/projectdiscovery/stringsutil v0.0.2 // indirect
github.com/projectdiscovery/hmap v0.0.11 // indirect
github.com/projectdiscovery/networkpolicy v0.0.5 // indirect
github.com/projectdiscovery/retryabledns v1.0.24 // indirect
github.com/projectdiscovery/retryablehttp-go v1.0.15 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/saintfish/chardet v0.0.0-20230101081208-5e3ef4b5456d // indirect
github.com/syndtr/goleveldb v1.0.0 // indirect
github.com/tidwall/btree v1.4.3 // indirect
github.com/tidwall/btree v1.6.0 // indirect
github.com/tidwall/buntdb v1.2.10 // indirect
github.com/tidwall/gjson v1.14.3 // indirect
github.com/tidwall/gjson v1.14.4 // indirect
github.com/tidwall/grect v0.1.4 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
github.com/tidwall/pretty v1.2.1 // indirect
github.com/tidwall/rtred v0.1.2 // indirect
github.com/tidwall/tinyqueue v0.1.1 // indirect
github.com/ulikunitz/xz v0.5.8 // indirect
Expand All @@ -78,14 +76,13 @@ require (
github.com/yuin/goldmark v1.5.4 // indirect
github.com/yuin/goldmark-emoji v1.0.1 // indirect
go.etcd.io/bbolt v1.3.7 // indirect
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/multierr v1.8.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/crypto v0.7.0 // indirect
golang.org/x/mod v0.9.0 // indirect
golang.org/x/net v0.8.0 // indirect
golang.org/x/oauth2 v0.5.0 // indirect
golang.org/x/sys v0.6.0 // indirect
golang.org/x/text v0.8.0 // indirect
golang.org/x/net v0.10.0 // indirect
golang.org/x/oauth2 v0.8.0 // indirect
golang.org/x/sys v0.8.0 // indirect
golang.org/x/text v0.9.0 // indirect
golang.org/x/tools v0.7.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.28.1 // indirect
Expand Down
Loading

0 comments on commit 2fc6ec5

Please sign in to comment.