GoogleCloudPlatform / GoogleCloudPlatform/cluster-toolkit

MODULEPATH broken across different shell invocations, due to poor package delivery for env. modules

Closed
#5,699 13 comments 0 reactions 1 assignee Claimed by @fgeorgatos View on GitHub
bug
Dominant language
Go
Stars
361
Forks
322
Avg merge
2d 21h
Merged PRs (30d)
115

Description

Dear GCP,

Here is an example of the bug manifestation.

Would you agree that the duplications and arbitrary ordering across different shell variants is a bug?

```
mkdir -p /tmp/hello; module use /tmp/hello ; for i in sh csh tcsh zsh ksh bash "bash -l"; do echo == SHELL is $i; echo 'echo $MODULEPATH'| $i ; done
== SHELL is sh
/tmp/hello:/etc/scl/modulefiles:/usr/share/Modules/modulefiles:/etc/modulefiles:/usr/share/modulefiles:/opt/apps/modulefiles
== SHELL is csh
/etc/scl/modulefiles:/tmp/hello:/etc/scl/modulefiles:/usr/share/Modules/modulefiles:/etc/modulefiles:/usr/share/modulefiles:/opt/apps/modulefiles
== SHELL is tcsh
/etc/scl/modulefiles:/tmp/hello:/etc/scl/modulefiles:/usr/share/Modules/modulefiles:/etc/modulefiles:/usr/share/modulefiles:/opt/apps/modulefiles
== SHELL is zsh
/tmp/hello:/etc/scl/modulefiles:/usr/share/Modules/modulefiles:/etc/modulefiles:/usr/share/modulefiles:/opt/apps/modulefiles
== SHELL is ksh
/tmp/hello:/etc/scl/modulefiles:/usr/share/Modules/modulefiles:/etc/modulefiles:/usr/share/modulefiles:/opt/apps/modulefiles
== SHELL is bash
/tmp/hello:/etc/scl/modulefiles:/usr/share/Modules/modulefiles:/etc/modulefiles:/usr/share/modulefiles:/opt/apps/modulefiles
== SHELL is bash -l
/etc/scl/modulefiles:/tmp/hello:/etc/scl/modulefiles:/usr/share/Modules/modulefiles:/etc/modulefiles:/usr/share/modulefiles:/opt/apps/modulefiles
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.