dapp 0.31.6 → 0.31.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/en/common.yml +2 -0
- data/lib/dapp/dimg/git_repo/base.rb +17 -4
- data/lib/dapp/dimg/git_repo/local.rb +0 -1
- data/lib/dapp/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd9c97ad66f0ed5aa2cace3d28b92f0faeab22173d934796cb497311525997e7
|
4
|
+
data.tar.gz: 6e6a8ff3a219c17759ece0d86f610db9c83a0629cff62aa6321197b9e1b0c6b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1e636cd82217a4d42b0912addae3e82e531eb8d2c4101601007e7ba45ee586c05a03ccfda936e900bf6049c1da0f328730e4a9795617407e8ea79d78b9047e6
|
7
|
+
data.tar.gz: 53d516b0f8d109dd65550c35125674c3f06a635e5624ca942785296bc1c54f2bbafea25be72b5d8ad89aac671eb64fbe0cdf2324e717ca52ca2b7bc245148852
|
data/config/en/common.yml
CHANGED
@@ -66,6 +66,8 @@ en:
|
|
66
66
|
stage_dependencies_not_found: "WARNING: Stage dependencies `%{dependencies}` haven't been found in repo `%{repo}`!"
|
67
67
|
stage_dependencies_file_not_found: "WARNING: Stage dependencies `%{dependencies}` haven't been found in repo `%{repo}`!\nIf you want to consider specific file you should use one of the following git-artifact configuration:\n\n```\ngit:\n- add: /folder/file\n to: /folder/file\n stageDependencies:\n install: ''\n```\n\n```\ngit:\n- add: /folder\n to: /folder\n includePaths: file\n stageDependencies:\n install: file\n```"
|
68
68
|
unsupported_dapp_config_options: "WARNING: .dapp_config includes unsupported options [%{options}]: use only following options [%{supported_options}]"
|
69
|
+
submodule_mapping_not_found: "WARNING: Repository `%{repo}`: No submodule mapping found in `.gitmodules` for path `%{path}`!"
|
70
|
+
submodule_url_scheme_not_detected: "WARNING: Submodule url scheme of `%{url}` not detected: using local repository `%{path}`!"
|
69
71
|
group:
|
70
72
|
install: 'Install group'
|
71
73
|
setup: 'Setup group'
|
@@ -57,14 +57,27 @@ module Dapp
|
|
57
57
|
{}.tap do |params|
|
58
58
|
params[:path] = submodule.path
|
59
59
|
params[:url] = submodule_url(submodule.url)
|
60
|
-
params[:type] =
|
60
|
+
params[:type] = begin
|
61
|
+
if url_protocol(params[:url]) == :noname
|
62
|
+
submodule_absolute_path = File.join(File.dirname(path), params[:path])
|
63
|
+
dapp.log_warning(desc: { code: :submodule_url_scheme_not_detected,
|
64
|
+
data: { url: params[:url], path: submodule_absolute_path } })
|
65
|
+
:local
|
66
|
+
else
|
67
|
+
:remote
|
68
|
+
end
|
69
|
+
end
|
61
70
|
params[:commit] = submodule.head_oid
|
62
71
|
end
|
63
72
|
end
|
64
73
|
|
65
74
|
def submodules(commit, paths: [], exclude_paths: [])
|
66
|
-
Rugged::SubmoduleCollection.new(submodules_git(commit))
|
67
|
-
|
75
|
+
Rugged::SubmoduleCollection.new(submodules_git(commit)).select do |submodule|
|
76
|
+
next false if ignore_directory?(submodule.path, paths: paths, exclude_paths: exclude_paths)
|
77
|
+
next true if submodule.in_config?
|
78
|
+
dapp.log_warning(desc: { code: :submodule_mapping_not_found,
|
79
|
+
data: { path: submodule.path, repo: name } })
|
80
|
+
end
|
68
81
|
end
|
69
82
|
|
70
83
|
def submodules_git(commit)
|
@@ -75,7 +88,7 @@ module Dapp
|
|
75
88
|
else
|
76
89
|
Rugged::Repository.clone_at(path.to_s, git_path.to_s).tap do |submodules_git|
|
77
90
|
begin
|
78
|
-
submodules_git.
|
91
|
+
submodules_git.checkout(commit, strategy: :force)
|
79
92
|
rescue Rugged::ReferenceError
|
80
93
|
raise_submodule_commit_not_found!(commit)
|
81
94
|
end
|
@@ -28,7 +28,6 @@ module Dapp
|
|
28
28
|
|
29
29
|
def submodules_params(commit, paths: [], exclude_paths: [])
|
30
30
|
submodules(commit, paths: paths, exclude_paths: exclude_paths).map do |submodule|
|
31
|
-
next if commit.nil? && !submodule.in_config?
|
32
31
|
submodule_params(submodule).tap do |params|
|
33
32
|
params[:commit] = submodule.workdir_oid || params[:commit] if commit.nil?
|
34
33
|
if submodule.in_workdir? && !submodule.uninitialized?
|
data/lib/dapp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.31.
|
4
|
+
version: 0.31.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Stolyarov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-shellout
|