golang: go run is always running old code even after changes

Viewed 3223

I have a weird issue with golang. I run the command (like everytime):

go run main.go

Then I made some change into my code and then I run again:

go run main.go

But the executed code is the old version of the code. So I tried some stuff:

  • Reboot the computer
  • Delete all the temporary binaries into temp folder
  • Reinstall go
  • Delete and put back my code
  • Remove some file

But it is still running my old version of the code. I didn't find solution about this issue, and the few post about it doesn't give a solution (here and here).

About my configuration it is the following:

  • Raspberry pi running Raspbian (updated)
  • Go version 1.8.1

I hope you can help me ! Thank in advance!

Best regards,

2 Answers
Related