8000 Cannot use the besom-cfg-k8s module version 0.1.0 with the besom core version 0.3.2 · Issue #552 · VirtusLab/besom · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Cannot use the besom-cfg-k8s module version 0.1.0 with the besom core version 0.3.2 #552
Open
@polkx

Description

@polkx

After running the below code snippet in Pulumi

//> using scala "3.3.1"
//> using dep "org.virtuslab::besom-core:0.3.2"
//> using dep "org.virtuslab::besom-cfg-k8s:0.1.0"

import besom.*
import besom.cfg.k8s.ConfiguredContainerArgs
import besom.cfg.Struct

@main def main = Pulumi.run {
  val containers = ConfiguredContainerArgs(
    name = "app",
    image = "helloWorld:latest",
    configuration = Struct(port = 8080)
  )
  
  Stack(Output(containers)).exports()
}

the error shows up:

    Compiling project (Scala 3.3.1, JVM (21))
    [error] ./Main.scala:11:20
    [error] Exception occurred while executing macro expansion.
    [error] java.lang.NoSuchMethodError: 'fansi.Str pprint.package$.apply(java.lang.Object, int, int, int, int)'
    [error]     at besom.cfg.k8s.ConfiguredContainerArgs$.applyImpl(configuredcontainer.scala:121)
    [error]
    Error compiling project (Scala 3.3.1, JVM (21))
    Compilation failed

If I run it in the earlier version besom-core 0.3.1, there is no such problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0