Compare commits

..

1 Commits

Author SHA1 Message Date
Pat Whittingslow 6ecac82c63 Add agents.md guideline for using ASD-STE100 in documentation 2026-07-30 18:50:05 -03:00
2 changed files with 2 additions and 8 deletions
+1
View File
@@ -0,0 +1 @@
Use ASD-STE100 Simplified Technical English for content outside of the code like comments, PR description, PR title, github comments.
+1 -8
View File
@@ -177,15 +177,8 @@ func Build(pkgName, outpath string, config *compileopts.Config) error {
// Pick a default output path based on the main directory.
outpath = filepath.Base(result.MainDir) + config.DefaultBinaryExtension()
}
} else if fi, statErr := os.Stat(outpath); statErr == nil && fi.IsDir() {
var name string
if strings.HasSuffix(pkgName, ".go") {
name = filepath.Base(pkgName[:len(pkgName)-3]) + config.DefaultBinaryExtension()
} else {
name = filepath.Base(result.MainDir) + config.DefaultBinaryExtension()
}
outpath = filepath.Join(outpath, name)
}
if err := os.Rename(result.Binary, outpath); err != nil {
// Moving failed. Do a file copy.
inf, err := os.Open(result.Binary)