Skip to content

Commit a0bf54f

Browse files
committed
Use master verison for jfrog dependencies
1 parent 2eb3f15 commit a0bf54f

File tree

6 files changed

+111
-27
lines changed

6 files changed

+111
-27
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
version: 2
2-
updates:
1+
version: 2
2+
updates:
33
- package-ecosystem: "gomod"
44
directory: "/"
55
schedule:
@@ -18,5 +18,6 @@
1818
groups:
1919
github-actions:
2020
update-types:
21+
- major
2122
- minor
22-
- patch
23+
- patch

.github/workflows/dependabot-auto-merge.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,35 @@ jobs:
1818
uses: dependabot/[email protected]
1919
with:
2020
github-token: "${{ secrets.GITHUB_TOKEN }}"
21+
22+
- name: Checkout PR code
23+
if: steps.metadata.outputs.dependency-group == 'go'
24+
uses: actions/checkout@v5
25+
with:
26+
ref: ${{ github.event.pull_request.head.sha }}
27+
token: ${{ secrets.GITHUB_TOKEN }}
28+
29+
- name: Run make update-all for go dependencies
30+
if: steps.metadata.outputs.dependency-group == 'go'
31+
run: make update-all
32+
33+
- name: Check for changes and commit
34+
if: steps.metadata.outputs.dependency-group == 'go'
35+
run: |
36+
if [ -n "$(git status --porcelain)" ]; then
37+
git config --local user.email "[email protected]"
38+
git config --local user.name "github-actions[bot]"
39+
git add .
40+
git commit -m "Update JFrog dependencies via make update-all"
41+
git push
42+
fi
43+
44+
- name: Approve PR
45+
run: gh pr review --approve "$PR_URL"
46+
env:
47+
PR_URL: ${{github.event.pull_request.html_url}}
48+
GH_TOKEN: ${{secrets.CLI_ACTION_TOKEN}}
49+
2150
- name: Enable auto-merge for Dependabot PRs
2251
run: gh pr merge --auto --squash "$PR_URL"
2352
env:

.github/workflows/monitor-stale.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ on:
55
operations-per-run:
66
description: "Number of operations per run"
77
required: false
8-
default: "30"
8+
default: "50"
99
schedule:
1010
- cron: "0 0 * * *" # Runs once a day at midnight
1111
jobs:
1212
monitor-issues-and-pull-requests:
1313
runs-on: ubuntu-latest
1414
permissions:
15+
actions: write
1516
issues: write
17+
pull-requests: write
1618
steps:
1719
- uses: actions/stale@v10
1820
with:
19-
# Ignore issues with these labels
20-
exempt-issue-labels: "feature request,question"
2121
# Days of inactivity before marking an issue as stale
2222
days-before-stale: 180
2323
# Days of inactivity before closing an issue
@@ -31,5 +31,5 @@ jobs:
3131
close-pr-message: "This pull-request was closed due to 7 days of inactivity after being marked as stale. Feel free to reopen it if it remains relevant."
3232
ascending: true
3333
# Get from input or resolve to default
34-
operations-per-run: ${{ github.event.inputs.operations-per-run || '30' }}
34+
operations-per-run: ${{ github.event.inputs.operations-per-run || '50' }}
3535
repo-token: ${{ secrets.GITHUB_TOKEN }}

Makefile

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Makefile for jfrog-client-go
2+
3+
.PHONY: $(MAKECMDGOALS)
4+
5+
# Default target
6+
help:
7+
@echo "Available targets:"
8+
@echo " update-all - Update all JFrog dependencies to latest versions"
9+
@echo " update-build-info-go - Update build-info-go to latest main branch"
10+
@echo " update-client-go - Update client-go to latest main branch"
11+
@echo " update-gofrog - Update gofrog to latest main branch"
12+
@echo " clean - Clean build artifacts"
13+
@echo " test - Run tests"
14+
@echo " build - Build the project"
15+
16+
# Update all JFrog dependencies
17+
update-all: update-build-info-go update-client-go update-gofrog
18+
@echo "All JFrog dependencies updated successfully!"
19+
@GOPROXY=direct go mod tidy
20+
21+
# Update build-info-go to latest main branch (using direct proxy to bypass Artifactory)
22+
update-build-info-go:
23+
@echo "Updating build-info-go to latest main branch..."
24+
@GOPROXY=direct go get github.com/jfrog/build-info-go@main
25+
@echo "build-info-go updated successfully!"
26+
27+
# Update gofrog to latest main branch
28+
update-client-go:
29+
@echo "Updating client-go to latest main branch..."
30+
@GOPROXY=direct go get github.com/jfrog/jfrog-client-go@master
31+
@echo "client-go updated successfully!"
32+
33+
# Update gofrog to latest main branch
34+
update-gofrog:
35+
@echo "Updating gofrog to latest main branch..."
36+
@GOPROXY=direct go get github.com/jfrog/gofrog@master
37+
@echo "gofrog updated successfully!"
38+
39+
# Clean build artifacts
40+
clean:
41+
@echo "Cleaning build artifacts..."
42+
@go clean
43+
@go clean -cache
44+
@go clean -modcache
45+
46+
# Run tests
47+
test:
48+
@echo "Running tests..."
49+
@go test ./...
50+
51+
# Build the project
52+
build:
53+
@echo "Building project..."
54+
@go build ./...

go.mod

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ require (
1515
github.com/jedib0t/go-pretty/v6 v6.6.8
1616
github.com/jfrog/build-info-go v1.11.0
1717
github.com/jfrog/gofrog v1.7.6
18-
github.com/jfrog/jfrog-client-go v1.55.0
18+
github.com/jfrog/jfrog-client-go v1.55.1-0.20250922120823-e64346ea079b
1919
github.com/magiconair/properties v1.8.10
2020
github.com/manifoldco/promptui v0.9.0
2121
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c
2222
github.com/spf13/viper v1.21.0
2323
github.com/stretchr/testify v1.11.1
2424
github.com/urfave/cli v1.22.17
2525
github.com/vbauerster/mpb/v8 v8.10.2
26-
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394
26+
golang.org/x/exp v0.0.0-20250911091902-df9299821621
2727
golang.org/x/sync v0.17.0
2828
golang.org/x/term v0.35.0
2929
golang.org/x/text v0.29.0
@@ -38,7 +38,7 @@ require (
3838
github.com/ProtonMail/go-crypto v1.1.6 // indirect
3939
github.com/VividCortex/ewma v1.2.0 // indirect
4040
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d // indirect
41-
github.com/andybalholm/brotli v1.1.1 // indirect
41+
github.com/andybalholm/brotli v1.2.0 // indirect
4242
github.com/cloudflare/circl v1.6.1 // indirect
4343
github.com/cpuguy83/go-md2man/v2 v2.0.7 // indirect
4444
github.com/cyphar/filepath-securejoin v0.4.1 // indirect
@@ -56,13 +56,13 @@ require (
5656
github.com/gogo/protobuf v1.3.2 // indirect
5757
github.com/golang-jwt/jwt/v4 v4.5.2 // indirect
5858
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
59-
github.com/golang/snappy v0.0.4 // indirect
59+
github.com/golang/snappy v1.0.0 // indirect
6060
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
6161
github.com/jfrog/archiver/v3 v3.6.1 // indirect
6262
github.com/json-iterator/go v1.1.12 // indirect
6363
github.com/kevinburke/ssh_config v1.2.0 // indirect
6464
github.com/klauspost/compress v1.18.0 // indirect
65-
github.com/klauspost/cpuid/v2 v2.2.9 // indirect
65+
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
6666
github.com/klauspost/pgzip v1.2.6 // indirect
6767
github.com/mattn/go-colorable v0.1.13 // indirect
6868
github.com/mattn/go-isatty v0.0.17 // indirect
@@ -88,7 +88,7 @@ require (
8888
github.com/spf13/pflag v1.0.10 // indirect
8989
github.com/stoewer/go-strcase v1.3.1 // indirect
9090
github.com/subosito/gotenv v1.6.0 // indirect
91-
github.com/ulikunitz/xz v0.5.14 // indirect
91+
github.com/ulikunitz/xz v0.5.15 // indirect
9292
github.com/x448/float16 v0.8.4 // indirect
9393
github.com/xanzy/ssh-agent v0.3.3 // indirect
9494
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect

go.sum

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ github.com/VividCortex/ewma v1.2.0 h1:f58SaIzcDXrSy3kWaHNvuJgJ3Nmz59Zji6XoJR/q1o
1313
github.com/VividCortex/ewma v1.2.0/go.mod h1:nz4BbCtbLyFDeC9SUHbtcT5644juEuWfUAUnGx7j5l4=
1414
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d h1:licZJFw2RwpHMqeKTCYkitsPqHNxTmd4SNR5r94FGM8=
1515
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d/go.mod h1:asat636LX7Bqt5lYEZ27JNDcqxfjdBQuJ/MM4CN/Lzo=
16-
github.com/andybalholm/brotli v1.1.1 h1:PR2pgnyFznKEugtsUo0xLdDop5SKXd5Qf5ysW+7XdTA=
17-
github.com/andybalholm/brotli v1.1.1/go.mod h1:05ib4cKhjx3OQYUY22hTVd34Bc8upXjOLL2rKwwZBoA=
16+
github.com/andybalholm/brotli v1.2.0 h1:ukwgCxwYrmACq68yiUqwIWnGY0cTPox/M94sVwToPjQ=
17+
github.com/andybalholm/brotli v1.2.0/go.mod h1:rzTDkvFWvIrjDXZHkuS16NPggd91W3kUSvPlQ1pLaKY=
1818
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8=
1919
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4=
2020
github.com/apache/camel-k/v2 v2.8.0 h1:zhbAzRFHjZ1n6IcaQDMbt3IidNWYheF34Xse33KrqGY=
@@ -87,8 +87,8 @@ github.com/golang-jwt/jwt/v4 v4.5.2 h1:YtQM7lnr8iZ+j5q71MGKkNw9Mn7AjHM68uc9g5fXe
8787
github.com/golang-jwt/jwt/v4 v4.5.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
8888
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 h1:f+oWsMOmNPc8JmEHVZIycC7hBoQxHH9pNKQORJNozsQ=
8989
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8/go.mod h1:wcDNUvekVysuuOpQKo3191zZyTpiI6se1N1ULghS0sw=
90-
github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
91-
github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
90+
github.com/golang/snappy v1.0.0 h1:Oy607GVXHs7RtbggtPBnr2RmDArIsAefDwvrdWvRhGs=
91+
github.com/golang/snappy v1.0.0/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
9292
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
9393
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
9494
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
@@ -112,8 +112,8 @@ github.com/jfrog/build-info-go v1.11.0 h1:qEONCgaHKlW3e2y0zIwTZVbgS/ERZrPlBWEbOY
112112
github.com/jfrog/build-info-go v1.11.0/go.mod h1:szdz9+WzB7+7PGnILLUgyY+OF5qD5geBT7UGNIxibyw=
113113
github.com/jfrog/gofrog v1.7.6 h1:QmfAiRzVyaI7JYGsB7cxfAJePAZTzFz0gRWZSE27c6s=
114114
github.com/jfrog/gofrog v1.7.6/go.mod h1:ntr1txqNOZtHplmaNd7rS4f8jpA5Apx8em70oYEe7+4=
115-
github.com/jfrog/jfrog-client-go v1.55.0 h1:dZq7sLjUJMps8X1I5coVUChprtR7xklp7oSfmZnI48w=
116-
github.com/jfrog/jfrog-client-go v1.55.0/go.mod h1:/e2kaF1oZTmSRgMIk7wYna5xMtNY7Xk8ahpSNZQ2d3s=
115+
github.com/jfrog/jfrog-client-go v1.55.1-0.20250922120823-e64346ea079b h1:e26MG4YmrtwUdfmpKPXqrB1i894y6BbS1f4RRHuhprk=
116+
github.com/jfrog/jfrog-client-go v1.55.1-0.20250922120823-e64346ea079b/go.mod h1:tJlcnGoJAqiScMRT2qOUPUzpVUrhpxkGiLg/BWZ7PtE=
117117
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
118118
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
119119
github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4=
@@ -124,8 +124,8 @@ github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0
124124
github.com/klauspost/compress v1.18.0 h1:c/Cqfb0r+Yi+JtIEq73FWXVkRonBlf0CRNYc8Zttxdo=
125125
github.com/klauspost/compress v1.18.0/go.mod h1:2Pp+KzxcywXVXMr50+X0Q/Lsb43OQHYWRCY2AiWywWQ=
126126
github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek=
127-
github.com/klauspost/cpuid/v2 v2.2.9 h1:66ze0taIn2H33fBvCkXuv9BmCwDfafmiIVpKV9kKGuY=
128-
github.com/klauspost/cpuid/v2 v2.2.9/go.mod h1:rqkxqrZ1EhYM9G+hXH7YdowN5R5RGN6NK4QwQ3WMXF8=
127+
github.com/klauspost/cpuid/v2 v2.3.0 h1:S4CRMLnYUhGeDFDqkGriYKdfoFlDnMtqTiI/sFzhA9Y=
128+
github.com/klauspost/cpuid/v2 v2.3.0/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0=
129129
github.com/klauspost/pgzip v1.2.6 h1:8RXeL5crjEUFnR2/Sn6GJNWtSQ3Dk8pq4CL3jvdDyjU=
130130
github.com/klauspost/pgzip v1.2.6/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs=
131131
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
@@ -228,8 +228,8 @@ github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSW
228228
github.com/terminalstatic/go-xsd-validate v0.1.6 h1:TenYeQ3eY631qNi1/cTmLH/s2slHPRKTTHT+XSHkepo=
229229
github.com/terminalstatic/go-xsd-validate v0.1.6/go.mod h1:18lsvYFofBflqCrvo1umpABZ99+GneNTw2kEEc8UPJw=
230230
github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
231-
github.com/ulikunitz/xz v0.5.14 h1:uv/0Bq533iFdnMHZdRBTOlaNMdb1+ZxXIlHDZHIHcvg=
232-
github.com/ulikunitz/xz v0.5.14/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
231+
github.com/ulikunitz/xz v0.5.15 h1:9DNdB5s+SgV3bQ2ApL10xRc35ck0DuIX/isZvIk+ubY=
232+
github.com/ulikunitz/xz v0.5.15/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
233233
github.com/urfave/cli v1.22.17 h1:SYzXoiPfQjHBbkYxbew5prZHS1TOLT3ierW8SYLqtVQ=
234234
github.com/urfave/cli v1.22.17/go.mod h1:b0ht0aqgH/6pBYzzxURyrM4xXNgsoT/n2ZzwQiEhNVo=
235235
github.com/vbauerster/mpb/v8 v8.10.2 h1:2uBykSHAYHekE11YvJhKxYmLATKHAGorZwFlyNw4hHM=
@@ -268,8 +268,8 @@ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPh
268268
golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
269269
golang.org/x/crypto v0.41.0 h1:WKYxWedPGCTVVl5+WHSSrOBT0O8lx32+zxmHxijgXp4=
270270
golang.org/x/crypto v0.41.0/go.mod h1:pO5AFd7FA68rFak7rOAGVuygIISepHftHnr8dr6+sUc=
271-
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394 h1:nDVHiLt8aIbd/VzvPWN6kSOPE7+F/fNFDSXLVYkE/Iw=
272-
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394/go.mod h1:sIifuuw/Yco/y6yb6+bDNfyeQ/MdPUy/hKEMYQV17cM=
271+
golang.org/x/exp v0.0.0-20250911091902-df9299821621 h1:2id6c1/gto0kaHYyrixvknJ8tUK/Qs5IsmBtrc+FtgU=
272+
golang.org/x/exp v0.0.0-20250911091902-df9299821621/go.mod h1:TwQYMMnGpvZyc+JpB/UAuTNIsVJifOlSkrZkhcvpVUk=
273273
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
274274
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
275275
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
@@ -318,8 +318,8 @@ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGm
318318
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
319319
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
320320
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
321-
golang.org/x/tools v0.36.0 h1:kWS0uv/zsvHEle1LbV5LE8QujrxB3wfQyxHfhOk0Qkg=
322-
golang.org/x/tools v0.36.0/go.mod h1:WBDiHKJK8YgLHlcQPYQzNCkUxUypCaa5ZegCVutKm+s=
321+
golang.org/x/tools v0.37.0 h1:DVSRzp7FwePZW356yEAChSdNcQo6Nsp+fex1SUW09lE=
322+
golang.org/x/tools v0.37.0/go.mod h1:MBN5QPQtLMHVdvsbtarmTNukZDdgwdwlO5qGacAzF0w=
323323
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
324324
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
325325
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=

0 commit comments

Comments
 (0)