diff --git a/cmd/commands/new.go b/cmd/commands/new.go index 6cd46db..7c8cdd5 100644 --- a/cmd/commands/new.go +++ b/cmd/commands/new.go @@ -172,18 +172,26 @@ var NewCmd = &cobra.Command{ } // Get file paths - log.Infoln("Getting file paths...") + log.Infoln("getting file paths...") paths, err := utils.WalkDirRecursive(rootDir) if err != nil { return errors.ToWakuError(err) } + log.Debugf("resolved file paths to: %v\n", paths) + + // get config rel path + configRelPath, err := filepath.Rel(tmpDir, configFilePath) + if err != nil { + return errors.ToWakuError(err) + } + log.Debugf("resolved config rel path to: %s\n", configRelPath) // Handle ignores - log.Infoln("Applying ignores...") + log.Infoln("applying ignore rules...") ignoreRules := types.NewSet( ".git/", "LICENSE*", - configFilePath, + configRelPath, ) if tmpl.Ignore != nil { ignoreRules.Union(types.Set[string](*tmpl.Ignore)) @@ -207,6 +215,7 @@ var NewCmd = &cobra.Command{ // account for template.json having a '!.git/' ignoreRules = template.ResolveIncludes(ignoreRules, types.NewSet(".git/", "LICENSE")) + log.Debugf("ignore rules applied: %v\n", ignoreRules) ignoredPaths := template.ResolveIncludes(types.NewSet(paths...), ignoreRules) log.Debugf("resolved files to write: %v\n", ignoredPaths) diff --git a/pkg/version/version.go b/pkg/version/version.go index 7a2ed99..32388e4 100644 --- a/pkg/version/version.go +++ b/pkg/version/version.go @@ -1,4 +1,4 @@ package version // The current app version -const Version = "0.7.2" +const Version = "0.7.3" diff --git a/www/docs/configuration/introduction.md b/www/docs/configuration/introduction.md index b4cabcb..230aad0 100644 --- a/www/docs/configuration/introduction.md +++ b/www/docs/configuration/introduction.md @@ -20,10 +20,10 @@ for better editor support. https://waku.ngjx.org/static/schema.json ``` -Or you can pin a specific version like `v0.7.2`: +Or you can pin a specific version like `v0.7.3`: ```text -https://raw.githubusercontent.com/caffeine-addictt/waku/v0.7.2/www/docs/static/schema.json +https://raw.githubusercontent.com/caffeine-addictt/waku/v0.7.3/www/docs/static/schema.json ``` Simply add the `$schema` property to your `configuration` file: diff --git a/www/docs/install.md b/www/docs/install.md index 1db613f..8b8e53b 100644 --- a/www/docs/install.md +++ b/www/docs/install.md @@ -102,17 +102,17 @@ All artifacts are checksummed, and the checksum file is signed with [cosign][]. and `checksums.txt.sig` files from the [releases][] page. ```sh - curl -O 'https://github.com/caffeine-addictt/waku/releases/download/v0.7.2/checksums.txt' + curl -O 'https://github.com/caffeine-addictt/waku/releases/download/v0.7.3/checksums.txt' ``` 1. Verify checksums signature: ```bash cosign verify-blob \ - --certificate-identity 'https://github.com/caffeine-addictt/waku/.github/workflows/release.yml@refs/tags/v0.7.2' \ + --certificate-identity 'https://github.com/caffeine-addictt/waku/.github/workflows/release.yml@refs/tags/v0.7.3' \ --certificate-oidc-issuer 'https://token.actions.githubusercontent.com' \ - --cert 'https://github.com/caffeine-addictt/waku/releases/download/v0.7.2/checksums.txt.pem' \ - --signature 'https://github.com/caffeine-addictt/waku/releases/download/v0.7.2/checksums.txt.sig' \ + --cert 'https://github.com/caffeine-addictt/waku/releases/download/v0.7.3/checksums.txt.pem' \ + --signature 'https://github.com/caffeine-addictt/waku/releases/download/v0.7.3/checksums.txt.sig' \ ./checksums.txt ``` @@ -130,7 +130,7 @@ Verify the signature: ```sh cosign verify \ - --certificate-identity 'https://github.com/caffeine-addictt/waku/.github/workflows/release.yml@refs/tags/v0.7.2' \ + --certificate-identity 'https://github.com/caffeine-addictt/waku/.github/workflows/release.yml@refs/tags/v0.7.3' \ --certificate-oidc-issuer 'https://token.actions.githubusercontent.com' \ caffeinec/waku ```