You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- correctly migrate to Go modules by using v3/ suffix for Semantic Import Versioning ([6be7683](https://github.com/algolia/algoliasearch-client-go/commit/6be7683))
330
337
331
338
**Manual Intervention Required**
332
-
339
+
333
340
Our migration to Go modules starting at version v3.0.0 of this Go API
334
341
client was done incorrectly since our module declaration was not
335
342
including the required `v3/` suffix. This commit fixes this issue by
336
343
respecting the Semantic Import Versioning described by the Go wiki.
337
-
344
+
338
345
**Step 1/2**
339
-
346
+
340
347
To update your project which depends on the Algolia Go API client, you
341
348
need to replace all `github.com/algolia/algoliasearch-client-go/*`
342
349
import statements with `github.com/algolia/algoliasearch-client-go/v3/*`
343
350
instead. The following shell one-liner can be used to perform this
344
351
change:
345
-
352
+
346
353
```
347
354
for f in $(find . -type f); do
348
355
sed -i '' 's:github.com/algolia/algoliasearch-client-go:github.com/algolia/algoliasearch-client-go/v3:g' $f
349
356
done
350
-
357
+
351
358
for f in $(find . -type f); do
352
359
sed -i 's:github.com/algolia/algoliasearch-client-go:github.com/algolia/algoliasearch-client-go/v3:g' $f
353
360
done
354
361
```
355
-
362
+
356
363
**Step 2/2**
357
-
364
+
358
365
After that, make sure to import the Algolia Go client dependency as such
0 commit comments