Skip to content

Commit

Permalink
stable point
Browse files Browse the repository at this point in the history
  • Loading branch information
verdverm committed May 15, 2020
1 parent 75ba5fe commit cdf81cf
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .hof/Config/lib/cuefig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ var ConfigFilepath string
func init() {
cfgdir, err := os.UserConfigDir()
if err == nil {
ConfigFilepath = filepath.Join(cfgdir, "hof/config.cue")
ConfigFilepath = filepath.Join(cfgdir, "hofconfig.cue")
} else {
ConfigFilepath = "hof/config.cue"
ConfigFilepath = "hofconfig.cue"
}
}

Expand Down
2 changes: 1 addition & 1 deletion design/hof-config.cue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

#HofConfig: schema.#Config & {
Name: "config"
Entrypoint: "\(#CLI.ConfigDir)/config.cue"
Entrypoint: "hofconfig.cue"

ConfigSchema: {
models: {
Expand Down
4 changes: 2 additions & 2 deletions lib/cuefig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ var ConfigFilepath string
func init() {
cfgdir, err := os.UserConfigDir()
if err == nil {
ConfigFilepath = filepath.Join(cfgdir, "dma/config.cue")
ConfigFilepath = filepath.Join(cfgdir, "hofconfig.cue")
} else {
ConfigFilepath = "dma/config.cue"
ConfigFilepath = "hofconfig.cue"
}
}

Expand Down
2 changes: 1 addition & 1 deletion test/modelset/cue.mods
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/hofstadter-io/dma/test

cue master

replace github.com/hofstadter-io/dma => ../
replace github.com/hofstadter-io/dma => ../../
2 changes: 2 additions & 0 deletions test/modelset/cue.sums
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ github.com/hofstadter-io/hofmod-cuefig v0.0.1 h1:B1mWOVnf35Dzqlha+vUjUd7GeQUSJQf
github.com/hofstadter-io/hofmod-cuefig v0.0.1/cue.mods h1:+3nl34nAVsm6hJTnDsZtfIrYGIkLqrr1yuGZvO9agBg=
github.com/hofstadter-io/mvs v0.5.0 h1:PMCgjy0HABxx0EuCnB7ODmlC/rP7cwZu3jWyTnVF37E=
github.com/hofstadter-io/mvs v0.5.0/cue.mods h1:3zTO9yBRvH0ML28h37/T/hWbOFG9d09eR1rTNKn60PU=
github.com/hofstadter-io/mvs v0.7.6 h1:CbQ4Ar9KwJdLppnI0pPU9yd8gXAxhsa3GY8CGyWVMYg=
github.com/hofstadter-io/mvs v0.7.6/cue.mods h1:sZTpALxLKwai/4N7ljwCxJ67J8V5/SMpZ4huAKoK2cU=
4 changes: 2 additions & 2 deletions test/modelset/dma/meta.cue → test/modelset/hofconfig.cue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dma
package hofconfig

import (
"github.com/hofstadter-io/dma/schema"
"github.com/hofstadter-io/hof/schema"
)

modelsets: schema.#Modelsets & {
Expand Down

0 comments on commit cdf81cf

Please sign in to comment.