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
2 changes: 1 addition & 1 deletion .github/workflows/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install Default Version (Latest Release)
run: |
BRANCH=${{ github.ref_name }}
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/calypr/git-drs/refs/heads/$BRANCH/install.sh)"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/calypr/git-drs/$BRANCH/install.sh)"
source $HOME/.bashrc
which git-drs
git-drs --help
8 changes: 6 additions & 2 deletions bump-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -euo pipefail

# Find latest tag excluding major v0
LATEST_TAG=$(git tag --list --sort=-v:refname | grep -v '^v0' | head -n1 || true)
LATEST_TAG=$(git tag --list --sort=-v:refname | head -n1 || true)
if [ -z "$LATEST_TAG" ]; then
echo "No suitable tag found (excluding v0). Aborting." >&2
exit 1
Expand Down Expand Up @@ -112,6 +112,7 @@ fi

BRANCH="$(git rev-parse --abbrev-ref HEAD)"


echo "Latest branch: $BRANCH"
echo "Latest tag: $LATEST_TAG"
echo "New tag: $NEW_TAG (files will use ${NEW_FILE_VER})"
Expand All @@ -138,11 +139,14 @@ fi

# Run tests/builds (non-fatal for Python tests)


# Commit, tag and push
NEW_TAG="v${NEW_TAG}"
git commit -m "chore(release): bump to ${NEW_TAG}" || echo "No changes to commit"
git tag -a "${NEW_TAG}" -m "Release ${NEW_TAG}"
echo "Created tag. Please push tag ${NEW_TAG} on branch ${BRANCH}."

echo "Created tag. Please push tag ${NEW_TAG} on branch ${BRANCH}."
echo "To push, run:"
echo git push origin "${BRANCH}"
echo git push origin "${NEW_TAG}"

10 changes: 5 additions & 5 deletions coverage/combined.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@

<option value="file40">github.com/calypr/git-drs/drslog/logger.go (75.2%)</option>

<option value="file41">github.com/calypr/git-drs/drsmap/drs_map.go (37.0%)</option>
<option value="file41">github.com/calypr/git-drs/drsmap/drs_map.go (36.3%)</option>

<option value="file42">github.com/calypr/git-drs/git-drs.go (42.9%)</option>

Expand Down Expand Up @@ -6209,12 +6209,12 @@
}
func UpdateDrsObjects(builder drs.ObjectBuilder, gitRemoteName, gitRemoteLocation string, branches []string, logger *slog.Logger) error <span class="cov0" title="0">{

if logger == nil </span><span class="cov0" title="0">{
if logger == nil </span>{
return fmt.Errorf("logger is required")
}</span>
<span class="cov0" title="0">logger.Debug("Update to DRS objects started")
}
logger.Debug("Update to DRS objects started")

// get all lfs files
</span></span> // get all lfs files
lfsFiles, err := lfs.GetAllLfsFiles(gitRemoteName, gitRemoteLocation, branches, logger)
if err != nil </span><span class="cov0" title="0">{
return fmt.Errorf("error getting all LFS files: %v", err)
Expand Down
1 change: 1 addition & 0 deletions coverage/combined.out
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,7 @@ github.com/calypr/git-drs/drsmap/drs_map.go:123.36,127.18 3 1
github.com/calypr/git-drs/drsmap/drs_map.go:127.18,129.5 1 0
github.com/calypr/git-drs/drsmap/drs_map.go:132.2,133.12 2 1
github.com/calypr/git-drs/drsmap/drs_map.go:135.137,137.19 1 0
github.com/calypr/git-drs/drsmap/drs_map.go:135.137,141.16 3 0
github.com/calypr/git-drs/drsmap/drs_map.go:137.19,139.3 1 0
github.com/calypr/git-drs/drsmap/drs_map.go:140.2,144.16 3 0
github.com/calypr/git-drs/drsmap/drs_map.go:144.16,146.3 1 0
Expand Down
3,690 changes: 1,850 additions & 1,840 deletions coverage/unit/coverage.out

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ go 1.24.2

require (
github.com/bytedance/sonic v1.15.0
github.com/calypr/data-client v0.0.0-20260205143646-d495680d2ea4
github.com/calypr/data-client v0.0.0-20260210235422-eab5bbef7b2f
github.com/go-git/go-git/v5 v5.13.0
github.com/golang-jwt/jwt/v5 v5.3.0
github.com/google/uuid v1.6.0
github.com/spf13/cobra v1.10.2
github.com/stretchr/testify v1.11.1
gopkg.in/yaml.v3 v3.0.1
)

require (
Expand Down Expand Up @@ -69,6 +68,7 @@ require (
golang.org/x/sync v0.19.0 // indirect
golang.org/x/tools v0.32.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ github.com/bytedance/sonic v1.15.0 h1:/PXeWFaR5ElNcVE84U0dOHjiMHQOwNIx3K4ymzh/uS
github.com/bytedance/sonic v1.15.0/go.mod h1:tFkWrPz0/CUCLEF4ri4UkHekCIcdnkqXw9VduqpJh0k=
github.com/bytedance/sonic/loader v0.5.0 h1:gXH3KVnatgY7loH5/TkeVyXPfESoqSBSBEiDd5VjlgE=
github.com/bytedance/sonic/loader v0.5.0/go.mod h1:AR4NYCk5DdzZizZ5djGqQ92eEhCCcdf5x77udYiSJRo=
github.com/calypr/data-client v0.0.0-20260205143646-d495680d2ea4 h1:mp6kt2KakOaSChWXdYBEdKRKkUE8HdN13KmFPCJx0+o=
github.com/calypr/data-client v0.0.0-20260205143646-d495680d2ea4/go.mod h1:S2doODN9ApF27gHEv4GIkdSwXIJl/7dSdkbwgiz5OMg=
github.com/calypr/data-client v0.0.0-20260210235422-eab5bbef7b2f h1:0ZEuhHT60jNs/LSMizPIc2Hmp3+GdgdNpdebAkAxk7E=
github.com/calypr/data-client v0.0.0-20260210235422-eab5bbef7b2f/go.mod h1:S2doODN9ApF27gHEv4GIkdSwXIJl/7dSdkbwgiz5OMg=
github.com/clipperhouse/stringish v0.1.1 h1:+NSqMOr3GR6k1FdRhhnXrLfztGzuG+VuFDfatpWHKCs=
github.com/clipperhouse/stringish v0.1.1/go.mod h1:v/WhFtE1q0ovMta2+m+UbpZ+2/HEXNWYXQgCt4hdOzA=
github.com/clipperhouse/uax29/v2 v2.3.0 h1:SNdx9DVUqMoBuBoW3iLOj4FQv3dN5mDtuqwuhIGpJy4=
Expand Down