Skip to content

Commit

Permalink
Remove hugopl/version_from_shard dependency.
Browse files Browse the repository at this point in the history
This shard was archived by me, the macro above does almost the same.

It get the version from shards.yml and add a build to it with a short
git hash or "unknown" if it wasn't built from a git repository (e.g. tarballs).

So version 0.15.0 is now show as 0.15.0+f8aa5c6.
  • Loading branch information
hugopl committed Nov 6, 2024
1 parent a761ed9 commit 70b1947
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
4 changes: 0 additions & 4 deletions shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,3 @@ shards:
git: https://github.com/samueleaton/sentry.git
version: 0.3.2+git.commit.e448ce83486f99ef016c311e10ec0cac805cded3

version_from_shard:
git: https://github.com/hugopl/version_from_shard.git
version: 1.2.5

2 changes: 0 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ targets:
dependencies:
lsp:
github: elbywan/crystal-lsp
version_from_shard:
github: hugopl/version_from_shard
priority-queue:
github: spider-gazelle/priority-queue

Expand Down
5 changes: 2 additions & 3 deletions src/crystalline/main.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ require "log"
require "lsp/server"
require "./ext/*"
require "./*"
require "version_from_shard"

module Crystalline
VersionFromShard.declare(__DIR__)

VERSION = {{ (`shards version #{__DIR__}`.strip + "+" +
system("git rev-parse --short HEAD || echo unknown").stringify).stringify.strip }}
# Supported server capabilities.
SERVER_CAPABILITIES = LSP::ServerCapabilities.new(
text_document_sync: LSP::TextDocumentSyncKind::Incremental,
Expand Down

0 comments on commit 70b1947

Please sign in to comment.