Skip to content

Remove leading zeroes in prerelease components.#1074

Merged
chriseth merged 2 commits intodevelopfrom
noleadingzeros
Sep 9, 2016
Merged

Remove leading zeroes in prerelease components.#1074
chriseth merged 2 commits intodevelopfrom
noleadingzeros

Conversation

@chriseth
Copy link
Copy Markdown
Contributor

@chriseth chriseth commented Sep 9, 2016

No description provided.

Comment thread cmake/scripts/buildinfo.cmake Outdated
string(STRIP "${SOL_VERSION_PRERELEASE}" SOL_VERSION_PRERELEASE)
else()
string(TIMESTAMP SOL_VERSION_PRERELEASE "develop.%Y.%m.%d" UTC)
string(REPLACE .0 . SOL_VERSION_PRERELEASE "${SOL_VERSION_PRERELEASE}")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indent seems to have changed, though I don't know the consequences in cmake files.

@chriseth
Copy link
Copy Markdown
Contributor Author

chriseth commented Sep 9, 2016

Sorry, I need to merge this now, otherwise browser-solidity will keep on breaking.

DATE=$(date --date="$(git log -1 --date=iso --format=%ad HEAD)" --utc +%Y.%-m.%-d)

# remove leading zeros in components - they are not semver-compatible
COMMIT=$(echo "$COMMIT" | sed -e 's/^0*//')
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was it wrong to add this here or was this part intentional as well? This is basically what introduces #8127

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was intentional. There cannot be leading zeros in this semver component.

axic pushed a commit to ipsilon/solidity that referenced this pull request Apr 22, 2025
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.

3 participants