# Probs building after 5851aabe

**URL:** https://forum.syncthing.net/t/probs-building-after-5851aabe/13707
**Category:** Development
**Created:** [August 31, 2019, 12:04pm UTC](https://forum.syncthing.net/t/probs-building-after-5851aabe/13707 "2019-08-31T12:04:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rahrah](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/r/9e8a1a/32.png) [@rahrah](https://forum.syncthing.net/u/rahrah)
#### Post date: [August 31, 2019, 12:04pm UTC](https://forum.syncthing.net/t/probs-building-after-5851aabe/13707/1 "2019-08-31T12:04:07Z")

</div>

Hi,

I’m having problems building syncthing git after `5851aabe - Include browser_download_url field`. If I run:

`go run build.go -no-upgrade`

I get:

```
# github.com/syncthing/syncthing/cmd/stupgrades
cmd/stupgrades/main.go:24:10: undefined: upgrade.FetchLatestReleases
cmd/stupgrades/main.go:30:12: undefined: upgrade.SortByRelease
exit status 2
exit status 1

```

If I run:

`go run build.go`

All is well with the world.

Is -no-upgrade no longer supported?

Thanks,

===Rich

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [August 31, 2019, 12:26pm UTC](https://forum.syncthing.net/t/probs-building-after-5851aabe/13707/2 "2019-08-31T12:26:00Z")

</div>

Yeah. It’s not since that commit but since adding `cmd/stupgrades` in general - the upgrade server cannot be built without the upgrade code (`-no-upgrade`), and the default build mode is to build _all_ the binaries.

You can `go run build.go -no-upgrade build syncthing` to get just `cmd/syncthing` built without upgrades though. This is what we do for Debian packages.

---

<div class="post-metadata">

### Author: ![rahrah](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/r/9e8a1a/32.png) [@rahrah](https://forum.syncthing.net/u/rahrah)
#### Post date: [September 2, 2019, 2:23pm UTC](https://forum.syncthing.net/t/probs-building-after-5851aabe/13707/3 "2019-09-02T14:23:10Z")

</div>

Hi,

Thanks for the speedy response! 🙂

===Rich

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [October 2, 2019, 2:34pm UTC](https://forum.syncthing.net/t/probs-building-after-5851aabe/13707/4 "2019-10-02T14:34:39Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
