Change name of imported type (aliasing)
The goal is to make code more productive and clean in cases where multiple classes with same name must be used in code. It should relief a developers frustration in that
Loading config from MergedConfigSource{FileConfigSource{path="/opt/app-root/src/app-config.yaml"}, FileConfigSource{path="/opt/app-root/src/app-config.example.yaml"}, FileConfigSource{path="/opt/app-root/src/app-config.example.production.yaml"}, FileConfigSource{path="/opt/app-root/src/dynamic-plugins-root/app-config.dynamic-plugins.yaml"}, FileConfigSource{path="/opt/app-root/src/knative.yaml"}, EnvConfigSource{count=1}} | |
skipping '/opt/app-root/src/dynamic-plugins-root/app-config.dynamic-plugins.yaml' since it is not a directory | |
failed to load dynamic plugin manifest from '/opt/app-root/src/dynamic-plugins-root/lost+found' [Error: ENOENT: no such file or directory, open '/opt/app-root/src/dynamic-plugins-root/lost+found/package.json'] { | |
errno: -2, | |
code: 'ENOENT', | |
syscall: 'open', | |
path: '/opt/app-root/src/dynamic-plugins-root/lost+found/package.json' | |
} | |
2024-04-10T17:42:15.030Z backstage info Found 1 new secrets in config that will be redacted | |
2024-04-10T17:42:15.033Z backstage info skipping '/opt/app |
panic: runtime error: invalid memory address or nil pointer dereference | |
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xc390f0] | |
goroutine 23 [running]: | |
github.com/charmbracelet/bubbletea.(*Program).ReleaseTerminal(0xc0001f0c30) | |
/home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.25.0/tea.go:651 +0x30 | |
knative.dev/client-pkg/pkg/output/tui.(*BubbleSpinner).start.func1() | |
/home/runner/go/pkg/mod/knative.dev/client-pkg@v0.0.0-20240322171749-cf1573f93631/pkg/output/tui/spinner.go:87 +0x68 | |
created by knative.dev/client-pkg/pkg/output/tui.(*BubbleSpinner).start in goroutine 40 | |
/home/runner/go/pkg/mod/knative.dev/client-pkg@v0.0.0-20240322171749-cf1573f93631/pkg/output/tui/spinner.go:82 +0x385 |
SIGQUIT: quit | |
PC=0x4704c1 m=0 sigcode=0 | |
goroutine 0 [idle]: | |
runtime.futex() | |
/home/ksuszyns/.gvm/gos/go1.21.4/src/runtime/sys_linux_amd64.s:557 +0x21 fp=0x7fff547c9630 sp=0x7fff547c9628 pc=0x4704c1 | |
runtime.futexsleep(0x7fff547c96a8?, 0x442e76?, 0x7fff547c96a8?) | |
/home/ksuszyns/.gvm/gos/go1.21.4/src/runtime/os_linux.go:69 +0x30 fp=0x7fff547c9680 sp=0x7fff547c9630 pc=0x437e30 | |
runtime.notesleep(0x27c3f08) | |
/home/ksuszyns/.gvm/gos/go1.21.4/src/runtime/lock_futex.go:160 +0x87 fp=0x7fff547c96b8 sp=0x7fff547c9680 pc=0x4109a7 |
SIGQUIT: quit | |
PC=0x4704c1 m=0 sigcode=0 | |
goroutine 0 [idle]: | |
runtime.futex() | |
/home/ksuszyns/.gvm/gos/go1.21.4/src/runtime/sys_linux_amd64.s:557 +0x21 fp=0x7ffe9fc2f4e0 sp=0x7ffe9fc2f4d8 pc=0x4704c1 | |
runtime.futexsleep(0x7ffe9fc2f558?, 0x442e76?, 0x7ffe9fc2f558?) | |
/home/ksuszyns/.gvm/gos/go1.21.4/src/runtime/os_linux.go:69 +0x30 fp=0x7ffe9fc2f530 sp=0x7ffe9fc2f4e0 pc=0x437e30 | |
runtime.notesleep(0x27c3ec8) | |
/home/ksuszyns/.gvm/gos/go1.21.4/src/runtime/lock_futex.go:160 +0x87 fp=0x7ffe9fc2f568 sp=0x7ffe9fc2f530 pc=0x4109a7 |
66.006 [resource-tracker #1] Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to channel | |
66.006 [resource-tracker #1] at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1787) | |
66.006 [resource-tracker #1] at hudson.remoting.Request.call(Request.java:199) | |
66.006 [resource-tracker #1] at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:288) | |
66.006 [resource-tracker #1] at com.sun.proxy.$Proxy6.fetch3(Unknown Source) | |
66.006 [resource-tracker #1] at hudson.remoting.RemoteClassLoader.prefetchClassReference(RemoteClassLoader.java:354) | |
66.006 [resource-tracker #1] at hudson.remoting.RemoteClassLoader.loadWithMultiClassLoader(RemoteClassLoader.java:259) | |
66.006 [resource-tracker #1] at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:229) | |
66.006 [resource-tracker #1] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:594) | |
66.006 [resource-tracker #1] at java.base/java.lang.ClassLoader.loadClass(Cla |
=== RUN TestProgress | |
================== | |
WARNING: DATA RACE | |
Read at 0x00c00018d700 by goroutine 40: | |
github.com/charmbracelet/bubbles/progress.(*Model).SetPercent.(*Model).nextFrame.func1() | |
/home/ksuszyns/git/knative-client-pkg/vendor/github.com/charmbracelet/bubbles/progress/progress.go:285 +0x4f | |
github.com/charmbracelet/bubbles/progress.(*Model).SetPercent.(*Model).nextFrame.Tick.func2() | |
/home/ksuszyns/git/knative-client-pkg/vendor/github.com/charmbracelet/bubbletea/commands.go:142 +0x83 | |
github.com/charmbracelet/bubbletea.(*Program).handleCommands.func1.1() | |
/home/ksuszyns/git/knative-client-pkg/vendor/github.com/charmbracelet/bubbletea/tea.go:294 +0x42 |
#!/bin/bash | |
getopt --test > /dev/null | |
if [[ $? -ne 4 ]]; then | |
echo "I’m sorry, `getopt --test` failed in this environment." | |
exit 1 | |
fi | |
SHORT=d:b:e:h | |
LONG=date:,branches:,excluded:,help |
$ podman-compose up --build --abort-on-container-exit | |
podman-compose version: 1.0.6 | |
['podman', '--version', ''] | |
using podman version: 4.7.0 | |
** excluding: set() | |
podman build -f app/Containerfile -t netalias_app app | |
STEP 1/4: FROM quay.io/fedora/fedora | |
STEP 2/4: RUN dnf install -y python3-redis python3-flask | |
--> Using cache c2bf03a022dc7e9cda93b8279310cde6fb33a790439d895f851949716ee18fdf | |
--> c2bf03a022dc |
SELinux is preventing bwrap from unmount access on the filesystem . | |
***** Plugin catchall (100. confidence) suggests ************************** | |
If you believe that bwrap should be allowed unmount access on the filesystem by default. | |
Then you should report this as a bug. | |
You can generate a local policy module to allow this access. | |
Do | |
allow this access for now by executing: | |
# ausearch -c 'bwrap' --raw | audit2allow -M my-bwrap |