Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 37 additions & 37 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
{
"name": "go-tx-map dev container",
"image": "mcr.microsoft.com/devcontainers/go:0-1.24-bullseye",
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
},
"mounts": [
"type=cache,target=/home/vscode/.cache/go-build",
"type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock"
],
"runArgs": [
"--cap-drop=ALL",
"--security-opt",
"no-new-privileges:true"
],
"postCreateCommand": "make lint && go vet ./... && go test ./...",
"customizations": {
"vscode": {
"settings": {
"go.useLanguageServer": true,
"go.lintTool": "golangci-lint",
"go.toolsEnvVars": {
"GOFLAGS": "-buildvcs=false"
},
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"extensions": [
"golang.Go",
"github.vscode-github-actions",
"eamodio.gitlens"
]
}
},
"remoteUser": "vscode"
"customizations": {
"vscode": {
"extensions": [
"golang.Go",
"github.vscode-github-actions",
"eamodio.gitlens"
],
"settings": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"editor.formatOnSave": true,
"go.lintTool": "golangci-lint",
"go.toolsEnvVars": {
"GOFLAGS": "-buildvcs=false"
},
"go.useLanguageServer": true
}
}
},
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"image": "mcr.microsoft.com/devcontainers/go:0-1.24-bullseye",
"mounts": [
"type=cache,target=/home/vscode/.cache/go-build",
"type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock"
],
"name": "go-tx-map dev container",
"postCreateCommand": "make lint && go vet ./... && go test ./...",
"remoteUser": "vscode",
"runArgs": [
"--cap-drop=ALL",
"--security-opt",
"no-new-privileges:true"
]
}
8 changes: 0 additions & 8 deletions .github/.prettierrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,22 @@
# Maintainer: @mrz1836
#
# ------------------------------------------------------------------------------------

# Print width (line length limit)
printWidth: 80

# Indentation
tabWidth: 2
useTabs: false

# Quotes
singleQuote: false # Use double quotes for consistency

# Brackets and spacing (applies to JS/JSON objects, not YAML arrays)
bracketSpacing: false # Keep consistent with YAML array formatting
bracketSameLine: false

# Array and object formatting
trailingComma: "none" # No trailing commas in YAML

# Line endings (should match .editorconfig)
endOfLine: "lf"

# Prose formatting (for Markdown in YAML)
proseWrap: "preserve"

# YAML-specific settings
overrides:
- files: "*.{yml,yaml}"
Expand Down
1 change: 0 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# These are supported funding model platforms

github: bsv-blockchain
4 changes: 0 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ body:
placeholder: The custom function strips the plus sign from numbers...
validations:
required: true

- type: textarea
id: reproduction_steps
attributes:
Expand All @@ -24,7 +23,6 @@ body:
2. Observe that the result is "input" (missing 'symbol')
validations:
required: true

- type: textarea
id: expected_behavior
attributes:
Expand All @@ -33,7 +31,6 @@ body:
placeholder: I expected the result to be "symbol+input" since the plus sign is allowed.
validations:
required: true

- type: textarea
id: environment
attributes:
Expand All @@ -45,7 +42,6 @@ body:
- Library version/commit: v1.3.4 or commit 88aef9c
validations:
required: false

- type: textarea
id: additional_context
attributes:
Expand Down
3 changes: 0 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ body:
placeholder: I'm always frustrated when I try to use X and it doesn't support Y...
validations:
required: true

- type: textarea
id: solution
attributes:
Expand All @@ -22,7 +21,6 @@ body:
placeholder: Add support for this custom function to custom map...
validations:
required: true

- type: textarea
id: alternatives
attributes:
Expand All @@ -31,7 +29,6 @@ body:
placeholder: I also considered doing this through a wrapper or middleware...
validations:
required: false

- type: textarea
id: context
attributes:
Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/question.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ body:
placeholder: I'm wondering about the behavior of the package.XYZ function when...
validations:
required: true

- type: textarea
id: additional_context
attributes:
Expand Down
3 changes: 0 additions & 3 deletions .github/actions/load-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,15 @@
# Maintainer: @mrz1836
#
# ------------------------------------------------------------------------------------

name: "Load Environment Variables"
description: "Loads environment variables from .github/.env.shared and outputs as JSON"

outputs:
env-json:
description: "JSON object containing all environment variables"
value: ${{ steps.load-env.outputs.env-json }}
primary-runner:
description: "Primary runner OS extracted from environment variables"
value: ${{ steps.load-env.outputs.primary-runner }}

runs:
using: "composite"
steps:
Expand Down
14 changes: 0 additions & 14 deletions .github/actions/warm-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
# Maintainer: @mrz1836
#
# ------------------------------------------------------------------------------------

name: "Warm Go Caches"
description: "Warm Go module and build caches for the specified Go version and OS"

inputs:
go-version:
description: "Go version to use"
Expand All @@ -31,7 +29,6 @@ inputs:
go-secondary-version:
description: "Secondary Go version for comparison"
required: true

runs:
using: "composite"
steps:
Expand All @@ -40,7 +37,6 @@ runs:
# ————————————————————————————————————————————————————————————————
- name: 📥 Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

# ————————————————————————————————————————————————————————————————
# Set environment variables
# ————————————————————————————————————————————————————————————————
Expand All @@ -53,7 +49,6 @@ runs:
echo "GOMODCACHE=$HOME/go/pkg/mod" >> $GITHUB_ENV
echo "GOLANGCI_LINT_CACHE=$HOME/.cache/golangci-lint" >> $GITHUB_ENV
echo "✅ Cache Environment variables set successfully"

# ────────────────────────────────────────────────────────────────────────────
# Restore the *shared* module cache (pkg/mod)
# ────────────────────────────────────────────────────────────────────────────
Expand All @@ -66,7 +61,6 @@ runs:
key: ${{ inputs.matrix-os }}-gomod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ inputs.matrix-os }}-gomod-

# ————————————————————————————————————————————————————————————————
# Check go.mod required version before setting up Go
# ————————————————————————————————————————————————————————————————
Expand Down Expand Up @@ -100,7 +94,6 @@ runs:
fi
fi
fi

# ————————————————————————————————————————————————————————————————
# Determine Go Toolchain Mode and set up Go
# ————————————————————————————————————————————————————————————————
Expand All @@ -120,14 +113,12 @@ runs:
else
echo "Not setting GOTOOLCHAIN (using default)"
fi

- name: 🏗️ Set up Go
id: setup-go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version: ${{ inputs.go-version }}
cache: false # we handle caches ourselves

# ────────────────────────────────────────────────────────────────────────────
# Restore the build cache & test cache
# ────────────────────────────────────────────────────────────────────────────
Expand All @@ -142,7 +133,6 @@ runs:
key: ${{ inputs.matrix-os }}-gobuild-${{ inputs.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ inputs.matrix-os }}-gobuild-${{ inputs.go-version }}-

# ————————————————————————————————————————————————————————————————
# Ensure go.sum exists and download modules
# ————————————————————————————————————————————————————————————————
Expand All @@ -157,7 +147,6 @@ runs:
else
echo "✅ go.sum already exists"
fi

# ────────────────────────────────────────────────────────────────────────────
# Warm the caches only when we had a miss
# ────────────────────────────────────────────────────────────────────────────
Expand All @@ -176,7 +165,6 @@ runs:
make install-stdlib

echo "✅ Cache warmed for Go ${{ inputs.go-version }}"

# ────────────────────────────────────────────────────────────────────────────
# Save the build cache we just created
# ────────────────────────────────────────────────────────────────────────────
Expand All @@ -189,7 +177,6 @@ runs:
~/.cache/go-build/test
# This is the first key, which does NOT have test cache, this will be used as a fail-over
key: ${{ inputs.matrix-os }}-gobuild-${{ inputs.go-version }}-${{ hashFiles('**/go.sum') }}

# ————————————————————————————————————————————————————————————————
# Track cache performance (no outputs - use artifacts instead)
# ————————————————————————————————————————————————————————————————
Expand All @@ -214,7 +201,6 @@ runs:

echo "📊 Cache statistics:"
jq . "$STATS_FILE"

# ————————————————————————————————————————————————————————————————
# Upload cache statistics
# ————————————————————————————————————————————————————————————————
Expand Down
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
# • PR limit = 10 to avoid queue flooding.
# • All dependency PRs require passing CI + CODEOWNERS review.
# ────────────────────────────────────────────────────────────────

version: 2

updates:
# ──────────────────────────────────────────────────────────────
# 1. Go Modules (go.mod / go.sum)
Expand Down Expand Up @@ -54,7 +52,6 @@ updates:
commit-message:
prefix: "chore"
include: "scope"

# ──────────────────────────────────────────────────────────────
# 2. GitHub Actions Workflows
# ──────────────────────────────────────────────────────────────
Expand All @@ -77,7 +74,6 @@ updates:
commit-message:
prefix: "chore"
include: "scope"

# ──────────────────────────────────────────────────────────────
# 3. DevContainer (devcontainer.json : base image + features)
# ──────────────────────────────────────────────────────────────
Expand Down
Loading
Loading