[PR #1425] Fix web build when cloned as submodule #1404

Open
opened 2025-11-09 10:12:20 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/imputnet/cobalt/pull/1425
Author: @eltbus
Created: 8/21/2025
Status: 🔄 Open

Base: mainHead: fix/use-exec-git-instead-of-imput-version-info


📝 Commits (1)

  • 1ea0a6e This implementations allows it to work when used as a submodule

📊 Changes

1 file changed (+26 additions, -1 deletions)

View changed files

📝 web/src/routes/version.json/+server.ts (+26 -1)

📄 Description

Ran into an issue building the frontend because of the get functions of the imput/version-info package if cobalt was cloned as a git submodule, so I decided to implement them instead.

This change relies on the pure execution of git to make it work.

Having git installed is required for it to work.

I am happy to work on it if it's not up to the standards!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/imputnet/cobalt/pull/1425 **Author:** [@eltbus](https://github.com/eltbus) **Created:** 8/21/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/use-exec-git-instead-of-imput-version-info` --- ### 📝 Commits (1) - [`1ea0a6e`](https://github.com/imputnet/cobalt/commit/1ea0a6e2ceb8a614be8c1ce1f0af8229b585e462) This implementations allows it to work when used as a submodule ### 📊 Changes **1 file changed** (+26 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `web/src/routes/version.json/+server.ts` (+26 -1) </details> ### 📄 Description Ran into an issue building the frontend because of the `get` functions of the `imput/version-info` package if cobalt was cloned as a git submodule, so I decided to implement them instead. This change relies on the pure execution of `git` to make it work. Having `git` installed is required for it to work. I am happy to work on it if it's not up to the standards! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-09 10:12:20 -06:00
Sign in to join this conversation.