Skip to content

Commit 8d9975f

Browse files
committed
Bypass VersionedDependencyComponent's resolution
In a previous commit for this change, a bug was introduced where the VersionedDependencyComponent's resolution was still performed, even though there was no where to look for dependencies any longer. This change fixes that bug by ensuring that the VersionedDependencyComponent's resolution is bypassed. [#764] Signed-off-by: Ben Hale <[email protected]>
1 parent 6fea4d5 commit 8d9975f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/java_buildpack/framework/dynatrace_one_agent.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ class DynatraceOneAgent < JavaBuildpack::Component::VersionedDependencyComponent
3232
#
3333
# @param [Hash] context a collection of utilities used the component
3434
def initialize(context)
35-
super(context)
35+
@application = context[:application]
36+
@component_name = self.class.to_s.space_case
37+
@configuration = context[:configuration]
38+
@droplet = context[:droplet]
39+
3640
@version, @uri = agent_download_url if supports?
3741
@logger = JavaBuildpack::Logging::LoggerFactory.instance.get_logger DynatraceOneAgent
3842
end

0 commit comments

Comments
 (0)