How to set version number of the package imported locally

94 views
Skip to first unread message

Ahmad Ismail

unread,
Jul 28, 2021, 12:02:03 PM7/28/21
to golang-nuts
My `go.mod` file looks like
```
module school
go 1.13
replace sample.com/math => ../math
```

When I run `go run school.go` the `go.mod` file changes to:
```
module school
go 1.13
replace sample.com/math => ../math
require sample.com/math v0.0.0-00010101000000-000000000000 // indirect
````
My question is

1. where does the package gets this version number (in this case v0.0.0-00010101000000-000000000000)?

2. How to set the version number

Volker Dobler

unread,
Jul 28, 2021, 4:12:09 PM7/28/21
to golang-nuts
1. It's a made up dummy
2. You cannot and you need not.

V.

Ahmad Ismail

unread,
Aug 1, 2021, 3:51:46 AM8/1/21
to golang-nuts
thank you very much.
Reply all
Reply to author
Forward
0 new messages