Skip to content

Commit

Permalink
!fixup final syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbou committed Nov 26, 2024
1 parent c08c73c commit a66eddc
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 91 deletions.
2 changes: 1 addition & 1 deletion src/client/opamPinCommand.ml
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ let list st ~short =
| None -> (`red, "error while fetching current revision")
| Some ver -> (`magenta, OpamPackage.Version.to_string ver)
in
Some (OpamConsole.colorise color ("("^rev^")"))
Some (Printf.sprintf "(at %s)" (OpamConsole.colorise color (rev)))
| _ -> None
in
[ OpamPackage.to_string nv;
Expand Down
26 changes: 13 additions & 13 deletions tests/reftests/pin.test
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ The following actions will be performed:
-> installed no-url.ved
Done.
### : list
### opam pin list | ' \([0-9a-f]+\)$' -> ' (HASH)'
nip-git.ved git git+file://${BASEDIR}/nip-git#master (HASH)
nip-git2.ved git git+file://${BASEDIR}/nip-git2#master (HASH)
### opam pin list | ' \(at [0-9a-f]+\)$' -> ' (at HASH)'
nip-git.ved git git+file://${BASEDIR}/nip-git#master (at HASH)
nip-git2.ved git git+file://${BASEDIR}/nip-git2#master (at HASH)
nip-path.ved rsync file://${BASEDIR}/nip-path
nip-path2.ved rsync file://${BASEDIR}/nip-path2
nip-path3.ved rsync file://${BASEDIR}/nip-path3
Expand Down Expand Up @@ -332,11 +332,11 @@ The following actions will be performed:
[NOTE] Pinning command successful, but your installed packages may be out of sync.
# Return code 31 #
### : list
### opam pin list | ' \([0-9a-f]+\)$' -> ' (HASH)'
### opam pin list | ' \(at [0-9a-f]+\)$' -> ' (at HASH)'
nip.1 version 1
nip-git.ved rsync file://${BASEDIR}/nip-git
nip-git2.ved git git+file://${BASEDIR}/nip-git2#master (HASH)
nip-git3.ved git git+file://${BASEDIR}/nip-git3#master (HASH)
nip-git2.ved git git+file://${BASEDIR}/nip-git2#master (at HASH)
nip-git3.ved git git+file://${BASEDIR}/nip-git3#master (at HASH)
nip-path.ved rsync file://${BASEDIR}/nip-path
nip-path3.ved rsync file://${BASEDIR}/nip-path3
no-url.1 (uninstalled) local definition
Expand Down Expand Up @@ -407,8 +407,8 @@ The following actions will be performed:
-> installed nip-path2.ved
Done.
### : list
### opam pin list | ' \([0-9a-f]+\)$' -> ' (HASH)'
nip-git.ved git git+file://${BASEDIR}/nip-git#master (HASH)
### opam pin list | ' \(at [0-9a-f]+\)$' -> ' (at HASH)'
nip-git.ved git git+file://${BASEDIR}/nip-git#master (at HASH)
nip-git2.ved rsync file://${BASEDIR}/nip-git2
nip-path.ved rsync file://${BASEDIR}/nip-path
nip-path2.ved rsync file://${BASEDIR}/nip-path2
Expand Down Expand Up @@ -452,8 +452,8 @@ Done.
# Name # Installed # Synopsis
nip-path ved pinned to version ved at file://${BASEDIR}/nip-path
nip-path2 ved pinned to version ved at file://${BASEDIR}/nip-path2
### opam pin list | ' \([0-9a-f]+\)$' -> ' (HASH)'
nip-git4.ved (uninstalled) git git+file://${BASEDIR}/nip-git4#master (HASH)
### opam pin list | ' \(at [0-9a-f]+\)$' -> ' (at HASH)'
nip-git4.ved (uninstalled) git git+file://${BASEDIR}/nip-git4#master (at HASH)
nip-path.ved rsync file://${BASEDIR}/nip-path
nip-path2.ved rsync file://${BASEDIR}/nip-path2
### find OPAM/actions/lib -name '*.t' | sort
Expand Down Expand Up @@ -570,11 +570,11 @@ The following actions will be performed:
### :::::::::::::::::::::::
### opam switch kinds
### : pin list
### opam pin list | ' \([0-9a-f]+\)$' -> ' (HASH)'
### opam pin list | ' \(at [0-9a-f]+\)$' -> ' (at HASH)'
nip.1 version 1
nip-git.ved rsync file://${BASEDIR}/nip-git
nip-git2.ved git git+file://${BASEDIR}/nip-git2#master (HASH)
nip-git3.ved git git+file://${BASEDIR}/nip-git3#master (HASH)
nip-git2.ved git git+file://${BASEDIR}/nip-git2#master (at HASH)
nip-git3.ved git git+file://${BASEDIR}/nip-git3#master (at HASH)
nip-path.ved rsync file://${BASEDIR}/nip-path
nip-path3.ved rsync file://${BASEDIR}/nip-path3
no-url.1 (uninstalled) local definition
Expand Down
Loading

0 comments on commit a66eddc

Please sign in to comment.