Skip to content

Commit

Permalink
hbook: fix go:generate to not require to install brio-gen
Browse files Browse the repository at this point in the history
Fix call to brio-gen command from go:generate to use the local copy of
brio-gen (using "go run") instead of an installed binary that may be outdated.
  • Loading branch information
dolmen authored and sbinet committed May 10, 2022
1 parent 7fe81f6 commit 25b579b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hbook/hbook.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
//go:generate go get github.com/campoy/embedmd
//go:generate embedmd -w README.md

//go:generate -command brio-gen go run go-hep.org/x/hep/brio/cmd/brio-gen
//go:generate brio-gen -p go-hep.org/x/hep/hbook -t Dist0D,Dist1D,Dist2D -o dist_brio.go
//go:generate brio-gen -p go-hep.org/x/hep/hbook -t Range,Binning1D,binningP1D,Bin1D,BinP1D,Binning2D,Bin2D -o binning_brio.go
//go:generate brio-gen -p go-hep.org/x/hep/hbook -t Point2D -o points_brio.go
Expand Down

0 comments on commit 25b579b

Please sign in to comment.