Skip to content

Commit

Permalink
mv -f so we overwrite readonly sources when there's > 1
Browse files Browse the repository at this point in the history
  • Loading branch information
pebers committed Feb 9, 2016
1 parent 552ab19 commit f496a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse/rules/go_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# Invokes the Go compiler.
'compile_cmd': 'go tool %s -trimpath $TMP_DIR -complete $SRC_DIRS -I . -pack -o $OUT ' % _GO_COMPILE_TOOL,
# Annotates files for coverage
'cover_cmd': 'for SRC in $SRCS; do mv $SRC _tmp.go; BN=$(basename $SRC); go tool cover -mode=set -var=GoCover_${BN//./_} _tmp.go > $SRC; done',
'cover_cmd': 'for SRC in $SRCS; do mv -f $SRC _tmp.go; BN=$(basename $SRC); go tool cover -mode=set -var=GoCover_${BN//./_} _tmp.go > $SRC; done',
'src_dirs_cmd': _SRC_DIRS_CMD,
}
# String it all together.
Expand Down

0 comments on commit f496a82

Please sign in to comment.