Closed gedw99 closed 1 month ago
got it all working.
for future lazy devs like me :)
# https://github.com/martinvonz/jj
WGOT_BIN=wgot
WGOT_BIN_WHICH=$(shell which $(WGOT_BIN))
ARC_BIN=arc
ARC_BIN_WHICH=$(shell which $(ARC_BIN))
JJ_BIN=jj
JJ_BIN_WHICH=$(shell which $(JJ_BIN))
jj-print:
@echo ""
jj-dep-clean:
rm -f $(WGOT_BIN_WHICH)
rm -f $(ARC_BIN_WHICH)
rm -f $(JJ_BIN_WHICH)
jj-dep-dep:
mkdir -p $(DEP_ROOT)
ifeq ($(WGOT_BIN_WHICH), )
# https://github.com/bitrise-io/got
go install github.com/bitrise-io/got/cmd/wgot@latest
mv $(GOPATH)/bin/wgot $(DEP_ROOT)/wgot
endif
ifeq ($(ARC_BIN_WHICH), )
# https://github.com/mholt/archiver
go install github.com/mholt/archiver/v3/cmd/arc@latest
mv $(GOPATH)/bin/arc $(DEP_ROOT)/arc
endif
jj-dep: jj-dep-dep
ifeq ($(JJ_BIN_WHICH), )
cd $(DEP_ROOT) && wgot https://github.com/martinvonz/jj/releases/download/v0.22.0/jj-v0.22.0-aarch64-apple-darwin.tar.gz
#cd $(DEP_ROOT) && ls -al
#cd $(DEP_ROOT) && arc --help
#cd $(DEP_ROOT) && arc ls jj-v0.22.0-aarch64-apple-darwin.tar.gz
# nope
#cd $(DEP_ROOT) && arc unarchive --ext=tar.gz -mkdirs -overwrite jj-v0.22.0-aarch64-apple-darwin.tar.gz
# yes
cd $(DEP_ROOT) && arc unarchive jj-v0.22.0-aarch64-apple-darwin.tar.gz
cp $(DEP_ROOT)/jj-v0/jj $(DEP_ROOT)/jj
# clean up
rm -rf $(DEP_ROOT)/jj-v0
rm -f $(DEP_ROOT)/jj-v0.22.0-aarch64-apple-darwin.tar.gz
endif
jj-h: jj-dep
$(JJ_BIN) --help
here we go:
make jj-dep-clean
rm -f /Users/apple/workspace/go/src/junk/clock-data-star/.dep/wgot
rm -f /Users/apple/workspace/go/src/junk/clock-data-star/.dep/arc
rm -f /Users/apple/workspace/go/src/junk/clock-data-star/.dep/jj
make jj-h
mkdir -p /Users/apple/workspace/go/src/junk/clock-data-star/.dep
# https://github.com/bitrise-io/got
go install github.com/bitrise-io/got/cmd/wgot@latest
mv /Users/apple/workspace/go/bin/wgot /Users/apple/workspace/go/src/junk/clock-data-star/.dep/wgot
# https://github.com/mholt/archiver
go install github.com/mholt/archiver/v3/cmd/arc@latest
mv /Users/apple/workspace/go/bin/arc /Users/apple/workspace/go/src/junk/clock-data-star/.dep/arc
cd /Users/apple/workspace/go/src/junk/clock-data-star/.dep && wgot https://github.com/martinvonz/jj/releases/download/v0.22.0/jj-v0.22.0-aarch64-apple-darwin.tar.gz
✔ https://github.com/martinvonz/jj/releases/download/v0.22.0/jj-v0.22.0-aarch64-apple-darwin.tar.gz
#cd /Users/apple/workspace/go/src/junk/clock-data-star/.dep && ls -al
#cd /Users/apple/workspace/go/src/junk/clock-data-star/.dep && arc --help
#cd /Users/apple/workspace/go/src/junk/clock-data-star/.dep && arc ls jj-v0.22.0-aarch64-apple-darwin.tar.gz
# nope
#cd /Users/apple/workspace/go/src/junk/clock-data-star/.dep && arc unarchive --ext=tar.gz -mkdirs -overwrite jj-v0.22.0-aarch64-apple-darwin.tar.gz
# yes
cd /Users/apple/workspace/go/src/junk/clock-data-star/.dep && arc unarchive jj-v0.22.0-aarch64-apple-darwin.tar.gz
cp /Users/apple/workspace/go/src/junk/clock-data-star/.dep/jj-v0/jj /Users/apple/workspace/go/src/junk/clock-data-star/.dep/jj
# clean up
rm -rf /Users/apple/workspace/go/src/junk/clock-data-star/.dep/jj-v0
rm -f /Users/apple/workspace/go/src/junk/clock-data-star/.dep/jj-v0.22.0-aarch64-apple-darwin.tar.gz
jj --help
Jujutsu (An experimental VCS)
To get started, see the tutorial at https://martinvonz.github.io/jj/latest/tutorial/.
sorry about the noise... closing...
sorry to post such a lame issue, but I guess the cli just does not yet support sniffing the archive type and then extracting it yet ?
full reproduction :)
Makefile
Run it: here we go... juicy error bit is at the bottom !!