From 3cc5c2d9dc3b7fcc1bd9027bdc09d84e7af5394b Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Fri, 14 Jan 2022 23:33:01 +0300 Subject: [PATCH] docs: mention go modules, fix #2274 --- docs/compiler.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/compiler.md b/docs/compiler.md index 3dc2d52b7..b99da5398 100644 --- a/docs/compiler.md +++ b/docs/compiler.md @@ -54,6 +54,13 @@ this requires you to set proper `GOROOT` environment variable, like export GOROOT=/usr/lib64/go/1.15 ``` +You'll also need to initialize go modules for your contract like this (in the +directory containing contract package): +``` +$ go mod init +$ go mod tidy +``` + ### Compiling ```