profile
viewpoint
ibrahim dursun idursun @red-gate Cambridge, UK http://www.idursun.com Lead Software Engineer at Redgate

idursun/delphipi 17

Delphi Package Installer

idursun/spring-and-angular 16

A SPA demo project with Spring Framework and Angularjs

idursun/akka-distributed-pubsub 2

Minimal distributed pub/sub demo with akka

idursun/elm-adventures 1

My musing with elm

idursun/evolution 1

Simple ant colony evolution

idursun/safe-multiple-counters 1

Multiple counters example based on SAFE stack

idursun/springboot-and-hawtio 1

spring boot application with camel and embedded hawtio 2.0

allymparker/components-contrib 0

Community driven, reusable components for distributed apps

allymparker/dapr 0

Dapr is a portable, event-driven, runtime for building distributed applications across cloud and edge.

startedwoltapp/blurhash

started time in 6 days

startedEmbarkStudios/rust-gpu

started time in 6 days

startedlunatic-lang/lunatic

started time in 7 days

startedblugelabs/bluge

started time in 8 days

startedopeniddict/openiddict-core

started time in 8 days

startedextrawurst/gitui

started time in 8 days

startedclux/kube-rs

started time in 11 days

startedtoml-lang/toml

started time in 11 days

startedonatm/kall

started time in 12 days

issue openedfluxcd/helm-controller

Helm release fails with 'unable to parse key: assignment to entry in nil map'

We are trying to deploy linkerd with the following HelmRelease

apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
  name: linkerd
  namespace: default
spec:
  chart:
    spec:
      chart: linkerd2
      sourceRef:
        kind: HelmRepository
        name: linkerd
  interval: 1m0s
  releaseName: linkerd
  targetNamespace: default
  valuesFrom:
    - kind: Secret
      name: linkerd-ca
      valuesKey: ca.crt
      targetPath: global.identityTrustAnchorsPEM
    - kind: Secret
      name: linkerd-issuer
      valuesKey: issuer.crt
      targetPath: identity.issuer.tls.crtPEM
    - kind: Secret
      name: linkerd-issuer
      valuesKey: issuer.key
      targetPath: identity.issuer.tls.keyPEM

We get the following error message when we run gotk get hr -n default

unable to merge value from key 'ca.crt' in Secret 'default/linkerd-ca' into target path 'global.identityTrustAnchorsPEM': unable to parse key: assignment to entry in nil map

We have noticed that the error is happening at this line: https://github.com/fluxcd/helm-controller/blob/6402c7d775ca6905de84e0a192ddc4e7fa42f8a5/controllers/helmrelease_controller.go#L554 as result is still nil.

created time in 15 days

startedZaid-Ajaj/Feliz

started time in 17 days

startedTheAlgorithms/Rust

started time in 22 days

startedrui314/chibicc

started time in 24 days

starteddeps-rs/deps.rs

started time in 25 days

push eventidursun/vacuum

ibrahim.dursun

commit sha 1f3ab857c0a5aaadfbc5248dd5d809d483fc8a2f

Remove nested of ifs with and_then

view details

ibrahim dursun

commit sha 345e15c0b296f6ef3ca0a928362f6a3d64a289b8

Update dependencies

view details

push time in a month

push eventidursun/vacuum

ibrahim dursun

commit sha 9e9daa09932cb2fe51f7633bf36a89d0af503b82

Use correct dependency name

view details

push time in a month

startedGrokmoo/thyme

started time in a month

push eventidursun/vacuum

ibrahim.dursun

commit sha f8194d63cb361c6e2ca8cd8ae702aec109449025

Update dependencies

view details

push time in a month

startedsaanuregh/hola

started time in a month

startedcharliesome/doslinux

started time in a month

startedabhivaikar/howtheytest

started time in a month

startedmrDIMAS/rg3d

started time in a month

startedryanisaacg/quicksilver

started time in a month

startedntex-rs/ntex

started time in 2 months

startedmicrosoft/FluidFramework

started time in 2 months

startedvinayak-mehta/present

started time in 2 months

startedgluesql/gluesql

started time in 2 months

startedhediet/vscode-debug-visualizer

started time in 2 months

startedyuk7/ArchWSL

started time in 2 months

starteddotnet/tye

started time in 2 months

push eventidursun/vacuum

ibrahim dursun

commit sha 858e5851f5e8e45ce42dc750ef84c22e1fbdb004

Add build matrix to build.yaml

view details

ibrahim dursun

commit sha dedd43a8848383e2fb962038fed574aa620317a3

Update README.md

view details

ibrahim.dursun

commit sha 238a2a857efa6e3d6046ce9458d9b11f23968de9

Update dependencies

view details

ibrahim.dursun

commit sha 4c10a7a5066ba3fae542cc52c84bd2ef38e25118

Remove nested of ifs with and_then

view details

push time in 2 months

create barnchidursun/vacuum

branch : refactor/ifs

created branch time in 2 months

push eventidursun/vacuum

ibrahim dursun

commit sha dedd43a8848383e2fb962038fed574aa620317a3

Update README.md

view details

push time in 2 months

push eventidursun/vacuum

ibrahim dursun

commit sha 858e5851f5e8e45ce42dc750ef84c22e1fbdb004

Add build matrix to build.yaml

view details

push time in 2 months

PR opened distrentic/plum

Change return type of bitmap_size to usize

As reported in #4, updated the signature of bitmap_size to match the one in the blog post.

Fixes #4.

+4 -4

0 comment

1 changed file

pr created time in 2 months

push eventdistrentic/plum

ibrahim.dursun

commit sha bde14705be91b58cf749309612c87248693b8347

Change return type of bitmap_size to usize This is to make function signature to match the one in the blog post.

view details

push time in 2 months

create barnchdistrentic/plum

branch : fix/return-types

created branch time in 2 months

issue openedoam-dev/oam-dev.github.io

https://oam.dev/ returning 404

https://oam.dev/ is returning 404 and displaying: "Site not found" with the message "There isn't a GitHub Pages site here."

created time in 2 months

startedUzay-G/archivy

started time in 2 months

startedonatm/open-in-new-window

started time in 2 months

startedlabuladong/fucking-algorithm

started time in 2 months

startedByron/gitoxide

started time in 3 months

starteddermesser/sstable

started time in 3 months

push eventidursun/configs

ibrahim dursun

commit sha abf0a91c56f54cdf5e7cbf543f72c421cc21a883

Update alacritty configuration

view details

push time in 3 months

starteddracula/dracula-theme

started time in 3 months

startedbevyengine/bevy

started time in 3 months

starteddistrentic/plum

started time in 3 months

startednuclio/nuclio

started time in 3 months

fork idursun/alacritty

A cross-platform, GPU-accelerated terminal emulator

fork in 3 months

startedalacritty/alacritty

started time in 3 months

fork idursun/glow

GL on Whatever: a set of bindings to run GL anywhere and avoid target-specific code

fork in 3 months

issue commentkilork/actix-web-static-files

Invoking npm.cmd on Windows is failing

Thanks @kilork!

idursun

comment created time in 3 months

startedmigueldeicaza/gui.cs

started time in 3 months

startedDieselMeister/Terminal.Gui.Elmish

started time in 3 months

startednot-fl3/nanoserde

started time in 3 months

Pull request review commentkilork/actix-web-static-files

use cmd /c npm.cmd instead of just npm.cmd on windows

 impl NpmBuild {     pub fn to_resource_dir(self) -> ResourceDir {         self.into()     }++    #[cfg(not(windows))]+    fn command(&self) -> Command {+        Command::new(&self.executable)+    }++    #[cfg(windows)]+    fn command(&self) -> Command {+        Command::new("cmd").arg("/c").arg(&self.executable)

This doesn't compile on windows:

   --> src/impl.rs:604:9
    |
603 |     fn command(&self) -> Command {
    |                          ------- expected `std::process::Command` because of return type
604 |         Command::new("cmd").arg("/c").arg(&self.executable)
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::process::Command`, found `&mut std::process::Command`

However, the following compiles just fine:

#[cfg(windows)]
fn command(&self) -> Command {
    let mut cmd = Command::new("cmd");
    cmd.arg("/c").arg(&self.executable);
    cmd
}
kilork

comment created time in 3 months

issue commentkilork/actix-web-static-files

Invoking npm.cmd on Windows is failing

Hi @kilork,

Running npm first before cargo seems to be working fine only because error messages are silenced by cargo.

If I run cargo build -vv then I see the same errors being printed by npm.

idursun

comment created time in 3 months

startedkilork/actix-web-static-files

started time in 3 months

issue openedkilork/actix-web-static-files

Invoking npm on Windows does not succeed

When I run cargo build on Windows I get the following error:

error: failed to run custom build command for `web v0.1.0 (C:\repositories\rust\myproject\web)`

Caused by:
  process didn't exit successfully: `C:\repositories\rust\myproject\target\debug\build\web-b0554dea23c73a0f\build-script-build` (exit code: 101)
--- stdout
NPM_CMD is npm.cmd
 running npm install npm.cmd in "./assets"

--- stderr
internal/modules/cjs/loader.js:968
  throw err;
  ^

Error: Cannot find module 'C:\repositories\rust\myproject\web\assets\node_modules\npm\bin\npm-cli.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
    at Function.Module._load (internal/modules/cjs/loader.js:841:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
internal/modules/cjs/loader.js:968
  throw err;
  ^

Error: Cannot find module 'C:\repositories\rust\myproject\web\assets\node_modules\npm\bin\npm-cli.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
    at Function.Module._load (internal/modules/cjs/loader.js:841:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
internal/modules/cjs/loader.js:968
  throw err;
  ^

Error: Cannot find module 'C:\repositories\rust\myproject\web\assets\node_modules\npm\bin\npm-cli.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
    at Function.Module._load (internal/modules/cjs/loader.js:841:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
internal/modules/cjs/loader.js:968
  throw err;
  ^

Error: Cannot find module 'C:\repositories\rust\myproject\web\assets\node_modules\npm\bin\npm-cli.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
    at Function.Module._load (internal/modules/cjs/loader.js:841:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 3, kind: NotFound, message: "The system cannot find the path specified." }', web\build.rs:4:5

However, the same project compiles just fine on Linux.

The following code reproduced the same error:

    if let Err(e) = Command::new("npm.cmd")
        .arg("install")
        .current_dir(r#"c:\repositories\rust\myproject\web\assets\"#)
        .status()
    {
        eprintln!("Cannot execute install: {:?}", e);
    }

I think it is due to the fact that npm.cmd needs to set some variables and probably update PATH prior to running in the command shell.

The following code seems to work without any problems.

    if let Err(e) = Command::new("cmd")
        .arg("/c")
        .arg("npm.cmd")
        .arg("install")
        .current_dir(r#"c:\repositories\rust\mdreader\web\assets\"#)
        .status()
    {
        eprintln!("Cannot execute install: {:?}", e);
    }

created time in 3 months

more