Skip to content

Commit

Permalink
add missing packr command to cli/app.go
Browse files Browse the repository at this point in the history
  • Loading branch information
lhitchon committed Nov 22, 2018
1 parent 633814c commit a1f1850
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
*/coverage.out
.release/
cli/assets.go
dist/
vendor/
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ clean:
@echo "=== cleaning ==="
rm -rf $(BUILD_DIR)
rm -rf vendor
rm -f cli/*-packr.go

cover-assertion:
@cd assertion && go test -coverprofile=coverage.out && go tool cover -html=coverage.out
Expand Down
2 changes: 2 additions & 0 deletions cli/app.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package main

//go:generate packr

import (
"encoding/json"
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion cli/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,5 +262,5 @@ func TestArrayFlags(t *testing.T) {

func TestLoadBuiltInRuleSetMissing(t *testing.T) {
_, err := loadBuiltInRuleSet("missing.yml")
assert.Contains(t, err.Error(), "no such file or directory", "loadBuiltInRuleSet should fail for missing file")
assert.Contains(t, err.Error(), "file does not exist", "loadBuiltInRuleSet should fail for missing file")
}

0 comments on commit a1f1850

Please sign in to comment.