File tree Expand file tree Collapse file tree 5 files changed +16
-6
lines changed
Expand file tree Collapse file tree 5 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ require (
88 github.com/spf13/cobra v1.10.2
99 github.com/spf13/pflag v1.0.10
1010 go.yaml.in/yaml/v4 v4.0.0-rc.4
11- golang.org/x/mod v0.33 .0
11+ golang.org/x/mod v0.34 .0
1212)
1313
1414require (
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ go.yaml.in/yaml/v4 v4.0.0-rc.4 h1:UP4+v6fFrBIb1l934bDl//mmnoIZEDK0idg1+AIvX5U=
3030go.yaml.in/yaml/v4 v4.0.0-rc.4 /go.mod h1:aZqd9kCMsGL7AuUv/m/PvWLdg5sjJsZ4oHDEnfPPfY0 =
3131golang.org/x/mod v0.33.0 h1:tHFzIWbBifEmbwtGz65eaWyGiGZatSrT9prnU8DbVL8 =
3232golang.org/x/mod v0.33.0 /go.mod h1:swjeQEj+6r7fODbD2cqrnje9PnziFuw4bmLbBZFrQ5w =
33+ golang.org/x/mod v0.34.0 h1:xIHgNUUnW6sYkcM5Jleh05DvLOtwc6RitGHbDk4akRI =
34+ golang.org/x/mod v0.34.0 /go.mod h1:ykgH52iCZe79kzLLMhyCUzhMci+nQj+0XkbXpNYtVjY =
3335golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4 =
3436golang.org/x/sync v0.20.0 /go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0 =
3537gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 /go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0 =
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ goreleaser = "2.14.3"
55
66[tasks .build ]
77description = " Build the project"
8- run = " go build"
8+ # If I run inside worktrees
9+ run = " go build -buildvcs=false"
910
1011[tasks .lint ]
1112description = " Lint the code with golangci-lint"
Original file line number Diff line number Diff line change @@ -113,12 +113,17 @@ func generateMarkdownSnippet(snippet map[string]string) string {
113113 dictionary .NormalizeLang (lang ),
114114 utils .GetLanguageName (lang ),
115115 )
116- replaced := strings .ReplaceAll (snippet [lang ], "<YOUR_INDEX_NAME>" , "ALGOLIA_INDEX_NAME " )
116+ replaced := strings .ReplaceAll (snippet [lang ], "<YOUR_INDEX_NAME>" , "INDEX_NAME " )
117117 replaced = strings .ReplaceAll (
118118 replaced ,
119119 "cts_e2e_deleteObjects_javascript" ,
120- "ALGOLIA_INDEX_NAME " ,
120+ "INDEX_NAME " ,
121121 )
122+ replaced = strings .ReplaceAll (replaced , "YOUR_INDEX_NAME" , "INDEX_NAME" )
123+ replaced = strings .ReplaceAll (replaced , "YourApplicationID" , "ALGOLIA_APPLICATION_ID" )
124+ replaced = strings .ReplaceAll (replaced , "YourAdminAPIKey" , "ALGOLIA_API_KEY" )
125+ replaced = strings .ReplaceAll (replaced , "<YOUR_SEARCH_QUERY>" , "SEARCH_QUERY" )
126+ replaced = strings .ReplaceAll (replaced , "YOUR_TASK_ID" , "TASK_ID" )
122127 result += replaced
123128 result += "\n ```\n "
124129 }
Original file line number Diff line number Diff line change @@ -110,12 +110,14 @@ func generateMarkdownSnippet(snippet map[string]string) string {
110110 dictionary .NormalizeLang (lang ),
111111 utils .GetLanguageName (lang ),
112112 )
113- replaced := strings .ReplaceAll (snippet [lang ], "<YOUR_INDEX_NAME>" , "ALGOLIA_INDEX_NAME " )
113+ replaced := strings .ReplaceAll (snippet [lang ], "<YOUR_INDEX_NAME>" , "INDEX_NAME " )
114114 replaced = strings .ReplaceAll (
115115 replaced ,
116116 "cts_e2e_deleteObjects_javascript" ,
117- "ALGOLIA_INDEX_NAME " ,
117+ "INDEX_NAME " ,
118118 )
119+ replaced = strings .ReplaceAll (replaced , "<YOUR_QUERY>" , "SEARCH_QUERY" )
120+ replaced = strings .ReplaceAll (replaced , "uniqueID" , "OBJECT_ID" )
119121 result += replaced
120122 result += "\n ```\n "
121123 }
You can’t perform that action at this time.
0 commit comments