Improve upgrade instructions #11183

Closed
opened 2025-12-29 21:41:37 +01:00 by adam · 3 comments
Owner

Originally created by @larsen0815 on GitHub (May 15, 2025).

Originally assigned to: @larsen0815 on GitHub.

Change Type

Addition

Area

Installation/upgrade

Proposed Changes

https://github.com/netbox-community/netbox/compare/main...larsen0815:netbox:patch-2

Some minor changes:

  • Fix typo
  • As the version number is already automatically fetched from the repository, use this in a variable to more easily install that version
  • Explicitly change the directory so the user doesn't have to do this manually (any users not using the default installation directory should notice and adapt accordingly)
  • Use "git fetch" to prevent error: pathspec 'v4.3.1' did not match any file(s) known to git. This seems to be a common problem (1, 2, 3).
Originally created by @larsen0815 on GitHub (May 15, 2025). Originally assigned to: @larsen0815 on GitHub. ### Change Type Addition ### Area Installation/upgrade ### Proposed Changes https://github.com/netbox-community/netbox/compare/main...larsen0815:netbox:patch-2 Some minor changes: * Fix typo * As the version number is already automatically fetched from the repository, use this in a variable to more easily install that version * Explicitly change the directory so the user doesn't have to do this manually (any users not using the default installation directory should notice and adapt accordingly) * Use "git fetch" to prevent ```error: pathspec 'v4.3.1' did not match any file(s) known to git```. This seems to be a common problem ([1](https://github.com/netbox-community/netbox/discussions/12224), [2](https://github.com/netbox-community/netbox/discussions/9125), [3](https://www.reddit.com/r/Netbox/comments/1k9qruy/cannot_upgrade_from_git/)).
adam added the status: acceptedtype: documentation labels 2025-12-29 21:41:37 +01:00
adam closed this issue 2025-12-29 21:41:37 +01:00
Author
Owner

@bctiemann commented on GitHub (May 15, 2025):

For simplicity, let's skip the assignment to $VERSION (let's avoid making the instructions too self-interdependent at the expense of clarity), but the other additional git commands are worth adding.

@bctiemann commented on GitHub (May 15, 2025): For simplicity, let's skip the assignment to `$VERSION` (let's avoid making the instructions too self-interdependent at the expense of clarity), but the other additional git commands are worth adding.
Author
Owner

@larsen0815 commented on GitHub (May 16, 2025):

I have removed the variable stuff and created https://github.com/netbox-community/netbox/pull/19516

@larsen0815 commented on GitHub (May 16, 2025): I have removed the variable stuff and created https://github.com/netbox-community/netbox/pull/19516
Author
Owner

@pheus commented on GitHub (May 16, 2025):

This seems related to #16387

@pheus commented on GitHub (May 16, 2025): This seems related to #16387
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11183