From 7204b59e09a8ccd2d4441104abec36287ee645c4 Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Fri, 1 Jul 2022 11:14:23 +0200 Subject: [PATCH] chore: commit save point --- README.md | 6 ++++-- application/source/files.go | 7 ++----- release.json | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 60ae8b2..91801ce 100644 --- a/README.md +++ b/README.md @@ -325,5 +325,7 @@ Individual LaTeX commands can be looked up here: ## Change Log -- Version 1.0.25 (20220622174620) - - Added support for `gitlab sync` command \ No newline at end of file +- Version 1.0 + - Bug fixes + - Added support for `gitlab sync` command + - initial release \ No newline at end of file diff --git a/application/source/files.go b/application/source/files.go index 5e8d6dc..d17a132 100644 --- a/application/source/files.go +++ b/application/source/files.go @@ -14,13 +14,11 @@ import ( // func collectStructureFromFiles(directory string) (error, map[string]*requirement) { - cleanedDirectory := path.Clean(directory) + cleanedDirectory, err := filepath.Abs(path.Clean(directory)) pageMap := make(map[string]*requirement) - //pageMap := []requirement{} - - err := filepath.Walk(cleanedDirectory, + err = filepath.Walk(cleanedDirectory, func(current string, info os.FileInfo, err error) error { if err != nil { return err @@ -47,7 +45,6 @@ func collectStructureFromFiles(directory string) (error, map[string]*requirement if err != nil { printWarning("the file contains structural errors. check the YAML and if necessary the template.", cleanedPath, err) - return nil } bd := []byte(cleanedDirectory) diff --git a/release.json b/release.json index f6287d8..4e38767 100644 --- a/release.json +++ b/release.json @@ -1,3 +1,3 @@ { - "version": "1.0.34" + "version": "1.0.35" } \ No newline at end of file -- GitLab