Skip to content

Commit

Permalink
meta: move to public package (#125)
Browse files Browse the repository at this point in the history
We intend to expose package metadata through the code generation interface
#94. If so, it seems wrong to publically expose an internal package. Instead
of duplicating data we'll just make it public instead.
  • Loading branch information
mmcloughlin authored Oct 27, 2021
1 parent 71dd798 commit d5342b5
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ builds:
- arm64
ldflags:
- -s -w
- -X github.com/mmcloughlin/addchain/internal/meta.buildversion={{ .Version }}
- -X github.com/mmcloughlin/addchain/meta.buildversion={{ .Version }}
archives:
- format_overrides:
- goos: windows
Expand Down
2 changes: 1 addition & 1 deletion cmd/addchain/cite.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/google/subcommands"

"github.com/mmcloughlin/addchain/internal/cli"
"github.com/mmcloughlin/addchain/internal/meta"
"github.com/mmcloughlin/addchain/meta"
)

// cite subcommand.
Expand Down
2 changes: 1 addition & 1 deletion cmd/addchain/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/google/subcommands"

"github.com/mmcloughlin/addchain/internal/cli"
"github.com/mmcloughlin/addchain/internal/meta"
"github.com/mmcloughlin/addchain/meta"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion internal/tools/docgen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"strings"
"text/template"

"github.com/mmcloughlin/addchain/internal/meta"
"github.com/mmcloughlin/addchain/internal/results"
"github.com/mmcloughlin/addchain/meta"
)

//go:generate bib generate -bib ../../../doc/references.bib -tmpl bibliography.tmpl -output zbibliography.go
Expand Down
2 changes: 1 addition & 1 deletion internal/tools/release/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (v *VarsFile) SetFlags(f *flag.FlagSet) {
// DefaultPath returns the path to the default variables file in the meta
// package. Returns the empty string if the path cannot be determined.
func (v *VarsFile) DefaultPath() string {
return RepoPath("internal/meta/vars.go")
return RepoPath("meta/vars.go")
}

// Get variable from the meta variables file.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d5342b5

Please sign in to comment.