Skip to content

Commit 1b02634

Browse files
Merge pull request #3 from IPGeolocation/fix/makefile-and-doc-desc
fix: makefile + docs desc
2 parents cbd33d4 + 7f6d0b1 commit 1b02634

8 files changed

Lines changed: 26 additions & 25 deletions

File tree

.goreleaser.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ builds:
1717
- arm64
1818
id: "steampipe"
1919
binary: "{{ .ProjectName }}.plugin"
20+
flags:
21+
- -tags netgo
2022

2123
archives:
2224
- formats:

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## v0.1.2 [2026-05-12]
2+
3+
- fix abuse and asn docs description
4+
- fix Makefile issues that was targeting local plugins and added netgo tag for building binaries.
5+
16
## v0.1.1 [2026-04-24]
27
_Minor bug fixes + suggestions by Steampipe reviewer_
38

Makefile

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
1-
PLUGIN_NAME = steampipe-plugin-ipgeolocation
2-
PLUGIN_DIR = $(HOME)/.steampipe/plugins/local/ipgeolocation
3-
PLUGIN_BIN = $(PLUGIN_DIR)/ipgeolocation.plugin
4-
CONFIG_DIR = $(HOME)/.steampipe/config
5-
CONFIG_FILE = $(CONFIG_DIR)/ipgeolocation.spc
1+
STEAMPIPE_INSTALL_DIR ?= ~/.steampipe
2+
BUILD_TAGS = netgo
3+
PLUGIN_PATH = hub.steampipe.io/plugins/ipgeolocation/ipgeolocation@latest
4+
PLUGIN_BIN = $(STEAMPIPE_INSTALL_DIR)/plugins/$(PLUGIN_PATH)/steampipe-plugin-ipgeolocation.plugin
65

7-
.PHONY: all build install install-config setup fmt lint test clean
6+
CONFIG_DIR = $(STEAMPIPE_INSTALL_DIR)/config
7+
CONFIG_FILE = $(CONFIG_DIR)/ipgeolocation.spc
88

9-
## Default: build the plugin binary
10-
all: build
9+
.PHONY: install install-config setup fmt lint test clean
1110

12-
## Compile the plugin binary
13-
build:
14-
go build -o $(PLUGIN_NAME) .
15-
16-
## Install binary into Steampipe's local plugin path
17-
install: build
18-
@mkdir -p $(PLUGIN_DIR)
19-
@cp $(PLUGIN_NAME) $(PLUGIN_BIN)
11+
## Build and install the plugin binary in one step
12+
install:
13+
@mkdir -p $(dir $(PLUGIN_BIN))
14+
go build -o $(PLUGIN_BIN) -tags "${BUILD_TAGS}" *.go
2015
@echo "✓ Plugin installed → $(PLUGIN_BIN)"
2116

2217
## Copy the sample config (skips if already exists so you don't lose edits)
@@ -35,13 +30,13 @@ install-config:
3530
setup:
3631
@echo "→ Fetching Go dependencies..."
3732
go mod tidy
38-
@echo "→ Building plugin..."
33+
@echo "→ Building and installing plugin..."
3934
@$(MAKE) install
4035
@echo "→ Installing config..."
4136
@$(MAKE) install-config
4237
@echo ""
4338
@echo "Done! Next steps:"
44-
@echo " 1. Edit ~/.steampipe/config/ipgeolocation.spc (or set IPGEOLOCATION_API_KEY)"
39+
@echo " 1. Edit $(CONFIG_FILE) (or set IPGEOLOCATION_API_KEY)"
4540
@echo " 2. steampipe service restart"
4641
@echo " 3. steampipe query \"select * from ipgeolocation_ip where ip = '8.8.8.8'\""
4742

@@ -57,7 +52,7 @@ lint:
5752
test:
5853
go test ./...
5954

60-
## Remove built binary
55+
## Remove built plugin binary
6156
clean:
62-
@rm -f $(PLUGIN_NAME)
57+
@rm -f $(PLUGIN_BIN)
6358
@echo "✓ Cleaned"

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
organization: ipgeolocation
3-
category: ["saas", "internet", "security"]
3+
category: ["saas", "internet"]
44
icon_url: "/images/plugins/ipgeolocation/ipgeolocation.svg"
55
brand_color: "#6c63ff"
66
display_name: "IPGeolocation.io"

docs/tables/ipgeolocation_abuse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Abuse contact lookup using the [IPGeolocation.io](https://ipgeolocation.io) `/v3/abuse` endpoint.
44

5-
Returns the responsible organisation, role, emails, phone numbers, postal address, CIDR route, and registered country for any IPv4 or IPv6 address — everything you need to file an abuse report.
5+
Returns the responsible organization, emails, phone numbers, postal address, CIDR route, and registered country for any IPv4 or IPv6 address — everything you need to file an abuse report.
66

77
> **Note:** Requires a **paid plan** API key. Costs **1 credit** per request.
88

docs/tables/ipgeolocation_asn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
ASN lookup using the [IPGeolocation.io](https://ipgeolocation.io) `/v3/asn` endpoint.
44

5-
Look up by IP address **or** ASN number. Returns the owning organisation, registration metadata (RIR, allocation date, status), announced route counts, and optionally the full list of routes, peers, upstreams, downstreams, and raw WHOIS text.
5+
Look up by IP address **or** ASN number. Returns the owning organization, registration metadata (RIR, allocation date, status), announced route counts, and optionally the full list of routes, peers, upstreams, downstreams, and raw WHOIS text.
66

77
> **Note:** This endpoint requires a **paid plan** API key and costs **1 credits per request**.
88

ipgeolocation/table_ipgeolocation_abuse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func tableIpgeolocationAbuse(ctx context.Context) *plugin.Table {
1212
return &plugin.Table{
1313
Name: "ipgeolocation_abuse",
1414
Description: "Abuse contact lookup using the IPGeolocation.io /v3/abuse endpoint. " +
15-
"Returns the responsible organisation, role, emails, phone numbers, " +
15+
"Returns the responsible organization, emails, phone numbers, " +
1616
"postal address, CIDR route, and registered country for any IPv4 or IPv6 address. " +
1717
"Requires a paid plan. Each query costs 1 API credit.",
1818
List: &plugin.ListConfig{

ipgeolocation/table_ipgeolocation_asn.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ func tableIpgeolocationAsn(ctx context.Context) *plugin.Table {
1515
Name: "ipgeolocation_asn",
1616
Description: "ASN lookup using the IPGeolocation.io /v3/asn endpoint. " +
1717
"Filter by ip (any IPv4/IPv6) or asn (e.g. '15169' or 'AS15169'). " +
18-
"With no filter the caller's own public IP ASN is returned. " +
1918
"Each query costs 1 API credit.",
2019
List: &plugin.ListConfig{
2120
KeyColumns: plugin.OptionalColumns([]string{"ip", "asn"}),

0 commit comments

Comments
 (0)