Skip to content

Use built for build-time information for version - #167

Closed
colindean wants to merge 1 commit into
typst:mainfrom
colindean:use-built
Closed

colindean wants to merge 1 commit into
typst:mainfrom
colindean:use-built

Conversation

@colindean

@colindean colindean commented Mar 22, 2023 •

Copy link
Copy Markdown

Fixes #150
Closes #154

@CGMossa

CGMossa commented Mar 22, 2023

Copy link
Copy Markdown
Contributor

While I'm not really a dependency frightened person, I think adding built and especially git2 to the mix for such a little feature is not really worth it.

It would be better to add something that notes down the commit-id when making tags or releases or something like that, rather than doing this.

Sorry

@colindean

colindean commented Mar 22, 2023 via email

Copy link
Copy Markdown
Author

@colindean

colindean commented Mar 22, 2023 via email

Copy link
Copy Markdown
Author

@figsoda

figsoda commented Mar 22, 2023

Copy link
Copy Markdown
Contributor

This PR closes #154, but not only does it not fix the issue, it breaks the workaround.

The original issue could be simply fixed with some bound checking, using built brings in impurities and unnecessary dependencies.

@figsoda

figsoda commented Mar 22, 2023

Copy link
Copy Markdown
Contributor

some bound checking,

#173

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to build from source archive

3 participants