Skip to content

Commit b28ce08

Browse files
authored
sync: update 5 files from source repository (#6)
1 parent 608b7c4 commit b28ce08

File tree

5 files changed

+75
-8
lines changed

5 files changed

+75
-8
lines changed

.github/.env.base

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ REDIS_CACHE_FORCE_PULL=false # Force pull Redis images even when cache
232232
# 🪄 MAGE-X CONFIGURATION
233233
# ================================================================================================
234234

235-
MAGE_X_VERSION=v1.7.16 # https://github.com/mrz1836/mage-x/releases
235+
MAGE_X_VERSION=v1.8.0 # https://github.com/mrz1836/mage-x/releases
236236
MAGE_X_USE_LOCAL=false # Use local version for development
237237
MAGE_X_AUTO_DISCOVER_BUILD_TAGS=true # Enable auto-discovery of build tags
238238
MAGE_X_AUTO_DISCOVER_BUILD_TAGS_EXCLUDE=race,custom # Comma-separated list of tags to exclude

.github/sweep.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
gha_enabled: true
2-
branch: master
32
blocked_dirs: []
43
draft: false
54
description: |
65
Sweep AI must follow the repository guidelines in .github/AGENTS.md.
76
rules:
87
- "Read .github/AGENTS.md first; it overrides these rules."
98
- "Format code with magex format:fix"
10-
- "Lint with 'magex lint' and vet with 'magex vet'"
9+
- "Lint with 'magex lint'"
1110
- "Run 'magex test' before committing"
12-
- "Commit messages use '<type>(<scope>): <short description>'"
13-
- "PR titles use '[Subsystem] Imperative and concise summary'"
14-
- "PR descriptions include: What Changed, Why It Was Necessary, Testing Performed, Impact / Risk"
15-
- "Run 'magex dep:tidy' after import changes"
11+
- "Commit messages refer to AGENTS.md"
12+
- "Run 'magex deps:tidy' after import changes"
1613
- "Report vulnerabilities privately following SECURITY.md"

.gitpod.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Gitpod workspace configuration for go-script-templates
2+
# Uses magex for build automation and development tasks
3+
# This creates a one-click development environment for contributors
4+
5+
image: gitpod/workspace-go:latest
6+
7+
tasks:
8+
- name: setup-and-test
9+
init: |
10+
echo "🚀 Setting up go-script-templates development environment..."
11+
echo "📦 Installing MAGE-X build tool..."
12+
go install github.com/mrz1836/mage-x/cmd/magex@latest
13+
14+
echo "📥 Downloading dependencies..."
15+
magex deps:download
16+
17+
echo "🔧 Initial build..."
18+
magex build
19+
20+
echo "✅ Running initial tests..."
21+
magex test
22+
23+
command: |
24+
echo "==============================================="
25+
echo "🎯 Welcome to go-script-templates development!"
26+
echo "==============================================="
27+
echo ""
28+
echo "🛠️ Available magex commands:"
29+
echo " magex test - Run all tests"
30+
echo " magex lint - Run linters"
31+
echo " magex format:fix - Format the code"
32+
echo " magex build - Build the project"
33+
echo " magex help - List all available commands"
34+
echo ""
35+
echo "📖 Quick start:"
36+
echo " 1. Try: magex test"
37+
echo " 2. Make your changes"
38+
echo " 3. Run: magex format:fix && magex lint && magex test"
39+
echo " 4. Commit and push your changes"
40+
echo ""
41+
echo "💡 For more help: magex help"
42+
echo "==============================================="
43+
44+
ports:
45+
- port: 8080
46+
onOpen: ignore
47+
description: Application (if needed)
48+
49+
vscode:
50+
extensions:
51+
- golang.go
52+
- github.vscode-pull-request-github
53+
- streetsidesoftware.code-spell-checker
54+
- eamodio.gitlens

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"-.mage-cache"
8181
],
8282
"formatting.gofumpt": true,
83-
"formatting.local": "github.com/bsv-blockchain/go-template",
83+
"formatting.local": "github.com/bsv-blockchain/go-script-templates",
8484
"symbolMatcher": "fastfuzzy",
8585
"symbolStyle": "full",
8686
"ui.completion.completeFunctionCalls": true,

.vscode/tasks.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,22 @@
588588
],
589589
"type": "shell"
590590
},
591+
{
592+
"command": "magex deps:update all-modules verbose",
593+
"detail": "Update dependencies across all modules",
594+
"group": "none",
595+
"label": "magex: deps:update:all-modules",
596+
"presentation": {
597+
"clear": true,
598+
"focus": false,
599+
"panel": "shared",
600+
"reveal": "always"
601+
},
602+
"problemMatcher": [
603+
"$go"
604+
],
605+
"type": "shell"
606+
},
591607
{
592608
"command": "magex deps:audit",
593609
"detail": "Audit dependencies for known security vulnerabilities",

0 commit comments

Comments
 (0)